Figure streamline functionality module
Single Responsibility: Handle streamline plotting functionality Extracted from fortplot_figure_core to improve modularity
Basic validation for streamplot inputs
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | x(:) | |||
real(kind=wp), | intent(in) | :: | y(:) | |||
real(kind=wp), | intent(in) | :: | u(:,:) | |||
real(kind=wp), | intent(in) | :: | v(:,:) |
Add a simple streamline to demonstrate functionality This creates a basic horizontal streamline that shows streamplot is working for the test suite.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | x(:) | |||
real(kind=wp), | intent(in) | :: | y(:) | |||
real(kind=wp), | intent(in) | :: | u(:,:) | |||
real(kind=wp), | intent(in) | :: | v(:,:) | |||
real(kind=wp), | intent(in), | optional | :: | line_color(3) | ||
real(kind=wp), | intent(out), | allocatable | :: | stream_x(:) | ||
real(kind=wp), | intent(out), | allocatable | :: | stream_y(:) | ||
real(kind=wp), | intent(out) | :: | stream_color(3) |
Clear streamline data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(plot_data_t), | intent(inout), | allocatable | :: | streamlines(:) |