Report Typos and Errors    
Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
Derived types and interfaces | Functions/Subroutines
sll_m_gnuplot_parallel Module Reference

Description

parallel version of sll_m_gnuplot

Data files are in ASCII format so these subroutines are slow and use a lot of disk space. Consider to use it for debug purpose. Here an example using the sll_t_layout_2d object, check out how to compute offset values before calling sll_m_gnuplot_parallel subroutines.

Derived types and interfaces

interface  sll_o_gnuplot_2d_parallel
 Create a gnuplot file for a 2d mesh (cartesian or curvilinear) More...
 

Functions/Subroutines

subroutine, public sll_s_gnuplot_curv_2d_parallel (array_x, array_y, array, array_name, iplot, error)
 write a data file plotable by gnuplot to visualize a 2d field More...
 
subroutine, public sll_s_gnuplot_rect_2d_parallel (x_min, delta_x, y_min, delta_y, npts_x, npts_y, array, array_name, iplot, error)
 write a data file plotable by gnuplot to visualize a 2d field More...
 

Function/Subroutine Documentation

◆ sll_s_gnuplot_curv_2d_parallel()

subroutine, public sll_m_gnuplot_parallel::sll_s_gnuplot_curv_2d_parallel ( real(kind=f64), dimension(:, :), intent(in)  array_x,
real(kind=f64), dimension(:, :), intent(in)  array_y,
real(kind=f64), dimension(:, :), intent(in)  array,
character(len=*), intent(in)  array_name,
integer(kind=i32), intent(in)  iplot,
integer(kind=i32), intent(out)  error 
)

write a data file plotable by gnuplot to visualize a 2d field

Parameters
[in]array_xx mesh coordinates
[in]array_yy mesh coordinates
[in]arraydata
[in]array_namefield name
[in]iplotplot counter
[out]errorerror code

Definition at line 70 of file sll_m_gnuplot_parallel.F90.

◆ sll_s_gnuplot_rect_2d_parallel()

subroutine, public sll_m_gnuplot_parallel::sll_s_gnuplot_rect_2d_parallel ( real(kind=f64), intent(in)  x_min,
real(kind=f64), intent(in)  delta_x,
real(kind=f64), intent(in)  y_min,
real(kind=f64), intent(in)  delta_y,
integer(kind=i32), intent(in)  npts_x,
integer(kind=i32), intent(in)  npts_y,
real(kind=f64), dimension(:, :), intent(in)  array,
character(len=*), intent(in)  array_name,
integer(kind=i32), intent(in)  iplot,
integer(kind=i32), intent(out)  error 
)

write a data file plotable by gnuplot to visualize a 2d field

Data are written in parallel, every processor writes in a different directory.

Todo:
There is a problem with this function. This function should be explicitly told which collective to use, thus permitting the writing of data by a subset of the processors if needed. This assumes that all the processors will contain the writable data. The collective should be passed as an argument. But this may imply that different collectives will write data with the same name... further changes are needed.
Parameters
[in]x_minBox corners
[in]delta_xstep size
[in]y_minBox corners
[in]delta_ystep size
[in]npts_xnumber of points to be written, x
[in]npts_ynumber of points to be written, y
[in]arraydata
[in]array_namefield name
[in]iplotplot counter
[out]errorerror code

Definition at line 164 of file sll_m_gnuplot_parallel.F90.

    Report Typos and Errors