Pangolin
 All Classes Files Functions Variables Pages
Data Types | Public Member Functions | List of all members
data_check Module Reference

Data checks (arrays, parameters etc) More...

Data Types

interface  check_allocated
 Generic function for checking arrays of int or double precision. More...
 
interface  free_array
 Generic function for freeing int/double precision arrays. More...
 
interface  get_address
 Generic function for getting the address of int/double precision arrays. More...
 

Public Member Functions

subroutine check_arguments (configfile)
 Check the arguments are valid Arguments : –config=filename (anther config file) –no-run (only writes the partitioning, no simulation) More...
 
subroutine check_mpi_error (ierr, descr, func_name, fname)
 Manage MPI errors. We just print a custom error message and abort. We only do that in debug mode. More...
 
subroutine check_allocated_int (cur, dname, func_name, fname)
 Check if the array of integer is already allocated. More...
 
subroutine check_allocated_double (cur, dname, func_name, fname)
 Check if the array of integer is already allocated. More...
 
subroutine check_allocated_double2d (cur, dname, func_name, fname)
 Check if 2d integer array is already allocated. More...
 
subroutine check_error (ierr, mesg, func_name, fname)
 Check if there is an error. More...
 
subroutine get_address_double (val, loc, dname, fname)
 Get address for MPI of double precision. More...
 
subroutine get_address_double_array (val, loc, dname, fname)
 Get address for MPI of double precision array. More...
 
subroutine get_address_real (val, loc, dname, fname)
 Get address for MPI of real. More...
 
subroutine get_address_char (val, loc, dname, fname)
 Get address for MPI of string. More...
 
subroutine get_address_int (val, loc, dname, fname)
 Get address for MPI of int. More...
 
subroutine get_address_long_int (val, loc, dname, fname)
 
subroutine get_address_int_array (val, loc, dname, fname)
 Get address for MPI of int array. More...
 
subroutine free_array_int (cur, dname, fname)
 Destructor for array of int. More...
 
subroutine free_array_double (cur, dname, fname)
 Destructor for array of double precision. More...
 
subroutine free_array_double2d (cur, dname, fname)
 
subroutine free_array_mpi_types (cur, dname, fname)
 Destructior for an array of MPI types. More...
 

Detailed Description

Data checks (arrays, parameters etc)

Author
Alexis Praga

Member Function/Subroutine Documentation

subroutine data_check::check_allocated_double ( double precision, dimension(:), intent(in), allocatable  cur,
character(*)  dname,
character(*)  func_name,
character(*)  fname 
)

Check if the array of integer is already allocated.

Parameters
func_name: function name
fname: file name

Here is the call graph for this function:

subroutine data_check::check_allocated_double2d ( double precision, dimension(:,:), intent(in), allocatable  cur,
character(*)  dname,
character(*)  func_name,
character(*)  fname 
)

Check if 2d integer array is already allocated.

Here is the call graph for this function:

subroutine data_check::check_allocated_int ( integer, dimension(:), intent(in), allocatable  cur,
character(*)  dname,
character(*)  func_name,
character(*)  fname 
)

Check if the array of integer is already allocated.

Parameters
func_name: function name
fname: file name

Here is the call graph for this function:

subroutine data_check::check_arguments ( character(*)  configfile)

Check the arguments are valid Arguments : –config=filename (anther config file) –no-run (only writes the partitioning, no simulation)

Here is the call graph for this function:

subroutine data_check::check_error ( integer, intent(in)  ierr,
character(*)  mesg,
character(*)  func_name,
character(*)  fname 
)

Check if there is an error.

Parameters
ierr: error code to be checked
mesg: message to be printed
func_name: function name
fname: file name

Here is the call graph for this function:

subroutine data_check::check_mpi_error ( integer, intent(in)  ierr,
character(*)  descr,
character(*)  func_name,
character(*)  fname 
)

Manage MPI errors. We just print a custom error message and abort. We only do that in debug mode.

Parameters
ierr: return code
descr: small description of the work being done
func_name: function name
fname: file name

Here is the call graph for this function:

subroutine data_check::free_array_double ( double precision, dimension(:), allocatable  cur,
character(*)  dname,
character(*)  fname 
)

Destructor for array of double precision.

Here is the call graph for this function:

subroutine data_check::free_array_double2d ( double precision, dimension(:,:), allocatable  cur,
character(*)  dname,
character(*)  fname 
)

Here is the call graph for this function:

subroutine data_check::free_array_int ( integer, dimension(:), allocatable  cur,
character(*)  dname,
character(*)  fname 
)

Destructor for array of int.

Here is the call graph for this function:

subroutine data_check::free_array_mpi_types ( integer, dimension(:), allocatable  cur,
character(*), intent(in)  dname,
character(*), intent(in)  fname 
)

Destructior for an array of MPI types.

Here is the call graph for this function:

subroutine data_check::get_address_char ( character(*)  val,
integer(kind=mpi_address_kind)  loc,
character(*)  dname,
character(*)  fname 
)

Get address for MPI of string.

Here is the call graph for this function:

subroutine data_check::get_address_double ( double precision  val,
integer(kind=mpi_address_kind)  loc,
character(*)  dname,
character(*)  fname 
)

Get address for MPI of double precision.

Here is the call graph for this function:

subroutine data_check::get_address_double_array ( double precision, dimension(:), allocatable  val,
integer(kind=mpi_address_kind)  loc,
character(*)  dname,
character(*)  fname 
)

Get address for MPI of double precision array.

Here is the call graph for this function:

subroutine data_check::get_address_int ( integer  val,
integer(kind=mpi_address_kind)  loc,
character(*)  dname,
character(*)  fname 
)

Get address for MPI of int.

Here is the call graph for this function:

subroutine data_check::get_address_int_array ( integer, dimension(:)  val,
integer(kind=mpi_address_kind)  loc,
character(*)  dname,
character(*)  fname 
)

Get address for MPI of int array.

Here is the call graph for this function:

subroutine data_check::get_address_long_int ( integer(kind=8)  val,
integer(kind=mpi_address_kind)  loc,
character(*)  dname,
character(*)  fname 
)

Here is the call graph for this function:

subroutine data_check::get_address_real ( real  val,
integer(kind=mpi_address_kind)  loc,
character(*)  dname,
character(*)  fname 
)

Get address for MPI of real.

Here is the call graph for this function:


The documentation for this module was generated from the following file: