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_xdmf_parallel Module Reference

Description

Implements the functions to write xdmf file plotable by VisIt.

In XDMF (eXtensible Data Model and Format) the description of the data is separate from the values themselves. Light data is stored using XML, Heavy data is stored using Parallel HDF5. These files are readable by Paraview.

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_xdmf_open
 Create the xdmf file. More...
 
interface  sll_o_xdmf_write_array
 Write and array in an xmf file. More...
 
interface  sll_o_xdmf_close
 Close the xdmf file. More...
 

Functions/Subroutines

subroutine sll_xdmf_open_2d_parallel (rank, file_name, mesh_name, nnodes_x1, nnodes_x2, file_id, error)
 Open a XDMF format file for a 2d plot. More...
 
subroutine sll_xdmf_open_3d_parallel (rank, file_name, mesh_name, nnodes_x1, nnodes_x2, nnodes_x3, file_id, error)
 Open a XDMF format file for a 3d plot. More...
 
subroutine sll_xdmf_array_2d_parallel (mesh_name, global_dims, offset, array, array_name, error, xmffile_id, center)
 Write 2d array in parallel hdf5 file and the matching line in XDMF file. More...
 
subroutine sll_xdmf_array_3d_parallel (mesh_name, global_dims, offset, array, array_name, error, xmffile_id, center)
 Write 3d array in binary or hdf5 file and the matching line in XDMF file. More...
 
subroutine sll_xdmf_close_parallel (file_id, error)
 Close the XML file and finish to write last lines. More...
 

Function/Subroutine Documentation

◆ sll_xdmf_array_2d_parallel()

subroutine sll_m_xdmf_parallel::sll_xdmf_array_2d_parallel ( character(len=*), intent(in)  mesh_name,
integer(i64), dimension(2), intent(in)  global_dims,
integer(i64), dimension(2), intent(in)  offset,
real(kind=f64), dimension(:, :), intent(in)  array,
character(len=*), intent(in)  array_name,
integer(kind=i32), intent(out)  error,
integer(kind=i32), intent(in), optional  xmffile_id,
character(len=4), intent(in), optional  center 
)
private

Write 2d array in parallel hdf5 file and the matching line in XDMF file.

Parameters
[in]mesh_namefile with mesh coordinates
[in]global_dimsglobal dimensions
[in]offsetblock offset
[in]arraydata array
[in]array_namename of the field
[out]errorerror code
[in]xmffile_idxml file unit number
[in]center"Node" or "Cell"

Definition at line 134 of file sll_m_xdmf_parallel.F90.

◆ sll_xdmf_array_3d_parallel()

subroutine sll_m_xdmf_parallel::sll_xdmf_array_3d_parallel ( character(len=*), intent(in)  mesh_name,
integer(i64), dimension(3), intent(in)  global_dims,
integer(i64), dimension(3), intent(in)  offset,
real(kind=f64), dimension(:, :, :), intent(in)  array,
character(len=*), intent(in)  array_name,
integer(kind=i32), intent(out)  error,
integer(kind=i32), intent(in), optional  xmffile_id,
character(len=4), intent(in), optional  center 
)
private

Write 3d array in binary or hdf5 file and the matching line in XDMF file.

Parameters
[in]mesh_namefile with mesh coordinates
[in]global_dimsglobal dimensions
[in]offsetblock offset
[in]arraydata array
[in]array_namename of the field
[out]errorerror code
[in]xmffile_idxml file unit number
[in]center"Node" or "Cell"

Definition at line 187 of file sll_m_xdmf_parallel.F90.

◆ sll_xdmf_close_parallel()

subroutine sll_m_xdmf_parallel::sll_xdmf_close_parallel ( integer(kind=i32), intent(in)  file_id,
integer(kind=i32), intent(out)  error 
)
private

Close the XML file and finish to write last lines.

Parameters
[in]file_idfile unit number
[out]errorerror code

Definition at line 241 of file sll_m_xdmf_parallel.F90.

◆ sll_xdmf_open_2d_parallel()

subroutine sll_m_xdmf_parallel::sll_xdmf_open_2d_parallel ( integer(kind=i32), intent(in)  rank,
character(len=*), intent(in)  file_name,
character(len=*), intent(in)  mesh_name,
integer(kind=i32), intent(in)  nnodes_x1,
integer(kind=i32), intent(in)  nnodes_x2,
integer(kind=i32), intent(out)  file_id,
integer(kind=i32), intent(out)  error 
)
private

Open a XDMF format file for a 2d plot.

Parameters
[in]rankprocessor number id
[in]file_namexmf file name
[in]mesh_namefile name that contains mesh
[in]nnodes_x1nodes number x
[in]nnodes_x2nodes number y
[out]file_idfile unit number
[out]errorerror code

Definition at line 81 of file sll_m_xdmf_parallel.F90.

◆ sll_xdmf_open_3d_parallel()

subroutine sll_m_xdmf_parallel::sll_xdmf_open_3d_parallel ( integer(kind=i32), intent(in)  rank,
character(len=*), intent(in)  file_name,
character(len=*), intent(in)  mesh_name,
integer(kind=i32), intent(in)  nnodes_x1,
integer(kind=i32), intent(in)  nnodes_x2,
integer(kind=i32), intent(in)  nnodes_x3,
integer(kind=i32), intent(out)  file_id,
integer(kind=i32), intent(out)  error 
)
private

Open a XDMF format file for a 3d plot.

Parameters
[in]rankprocessor number id
[in]file_namexml file name
[in]mesh_namefile name that contains data coordinates
[in]nnodes_x1nodes number x
[in]nnodes_x2nodes number y
[in]nnodes_x3nodes number z
[out]file_idfile unit number
[out]errorerror code

Definition at line 106 of file sll_m_xdmf_parallel.F90.

    Report Typos and Errors