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

Description

Implements the functions to write binary file to store heavy data.

This functions can be used only for sequential application. one file = one dataset
If HDF5 is not installed you can use this module.
This is controlled by the variable HDF5_ENABLE.

Derived types and interfaces

interface  sll_o_binary_write_array
 Write a nD array in a binary file. More...
 

Functions/Subroutines

subroutine, public sll_s_binary_file_create (filename, file_id, error)
 Create binary file. More...
 
subroutine, public sll_s_binary_file_close (file_id, error)
 Open binary file. More...
 
subroutine, public sll_s_binary_write_array_0d (file_id, array, error)
 Write a 0D array in the binary file file_id. More...
 
subroutine, public sll_s_binary_write_array_1d (file_id, array, error)
 Write a 1D array in the binary file file_id. More...
 
subroutine, public sll_s_binary_write_array_2d (file_id, array, error)
 Write a 2D array in the binary file file_id. More...
 
subroutine sll_s_binary_write_array_3d (file_id, array, error)
 Write a 3D array in the binary file file_id. More...
 
subroutine, public sll_s_binary_read_array_0d (file_id, array, error)
 Read a 0D array in the binary file file_id. More...
 
subroutine, public sll_s_binary_read_array_2d (file_id, array, error)
 Read a 2D array in the binary file file_id. More...
 

Function/Subroutine Documentation

◆ sll_s_binary_file_close()

subroutine, public sll_m_binary_io::sll_s_binary_file_close ( integer(kind=i32), intent(in)  file_id,
integer(kind=i32), intent(out)  error 
)

Open binary file.

Close binary file

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

Definition at line 105 of file sll_m_binary_io.F90.

Here is the caller graph for this function:

◆ sll_s_binary_file_create()

subroutine, public sll_m_binary_io::sll_s_binary_file_create ( character(len=*), intent(in)  filename,
integer(kind=i32), intent(out)  file_id,
integer(kind=i32), intent(out)  error 
)

Create binary file.

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

Definition at line 60 of file sll_m_binary_io.F90.

Here is the caller graph for this function:

◆ sll_s_binary_read_array_0d()

subroutine, public sll_m_binary_io::sll_s_binary_read_array_0d ( integer(kind=i32), intent(in)  file_id,
real(kind=f64), intent(out)  array,
integer(kind=i32), intent(out)  error 
)

Read a 0D array in the binary file file_id.

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

Definition at line 146 of file sll_m_binary_io.F90.

◆ sll_s_binary_read_array_2d()

subroutine, public sll_m_binary_io::sll_s_binary_read_array_2d ( integer(kind=i32), intent(in)  file_id,
real(kind=f64), dimension(:, :), intent(out)  array,
integer(kind=i32), intent(out)  error 
)

Read a 2D array in the binary file file_id.

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

Definition at line 154 of file sll_m_binary_io.F90.

◆ sll_s_binary_write_array_0d()

subroutine, public sll_m_binary_io::sll_s_binary_write_array_0d ( integer(kind=i32), intent(in)  file_id,
real(kind=f64), intent(in)  array,
integer(kind=i32), intent(out)  error 
)

Write a 0D array in the binary file file_id.

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

Definition at line 114 of file sll_m_binary_io.F90.

◆ sll_s_binary_write_array_1d()

subroutine, public sll_m_binary_io::sll_s_binary_write_array_1d ( integer(kind=i32), intent(in)  file_id,
real(kind=f64), dimension(:), intent(in)  array,
integer(kind=i32), intent(out)  error 
)

Write a 1D array in the binary file file_id.

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

Definition at line 122 of file sll_m_binary_io.F90.

◆ sll_s_binary_write_array_2d()

subroutine, public sll_m_binary_io::sll_s_binary_write_array_2d ( integer(kind=i32), intent(in)  file_id,
real(kind=f64), dimension(:, :), intent(in)  array,
integer(kind=i32), intent(out)  error 
)

Write a 2D array in the binary file file_id.

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

Definition at line 130 of file sll_m_binary_io.F90.

◆ sll_s_binary_write_array_3d()

subroutine sll_m_binary_io::sll_s_binary_write_array_3d ( integer(kind=i32), intent(in)  file_id,
real(kind=f64), dimension(:, :, :), intent(in)  array,
integer(kind=i32), intent(out)  error 
)
private

Write a 3D array in the binary file file_id.

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

Definition at line 138 of file sll_m_binary_io.F90.

    Report Typos and Errors