A utility to read NGA data files
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(block_obj), | public, | pointer | :: | block | => | null() |
Associated block structure |
type(MPI_Datatype), | public | :: | block_i4 | = | MPI_DATATYPE_NULL |
MPI derived type for integer block |
|
type(MPI_Datatype), | public | :: | block_r4 | = | MPI_DATATYPE_NULL |
MPI derived type for SP real block |
|
type(MPI_Datatype), | public | :: | block_r8 | = | MPI_DATATYPE_NULL |
MPI derived type for DP real block |
|
real(kind=leapDP), | public | :: | dt |
Time step in file |
|||
integer, | public, | allocatable | :: | etypes(:) |
Element types |
||
type(MPI_File), | public | :: | fid |
File identifier |
|||
character(len=str64), | public | :: | filename |
file to read/write |
|||
type(MPI_Info), | public | :: | mpi_info |
MPI info |
|||
character(len=str8), | public, | allocatable | :: | names(:) |
Names of variables in file |
||
integer, | public | :: | nx(3) |
Grid size |
|||
type(parallel_obj), | public, | pointer | :: | parallel | => | null() |
Associated parallel structure |
real(kind=leapDP), | public | :: | time |
Time in file |
Close file with MPI
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ngadata_obj), | intent(inout) | :: | this |
A NGAbin object |
Finalize structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ngadata_obj), | intent(inout) | :: | this |
A NGAbin object |
Read file attributes
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ngadata_obj), | intent(inout) | :: | this |
A NGAbin object |
Initialize structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ngadata_obj), | intent(inout) | :: | this |
A NGAbin object |
||
character(len=*), | intent(in) | :: | filename |
File to read/write |
||
character(len=*), | intent(in) | :: | access_flag |
File access mode |
||
type(block_obj), | intent(in), | target | :: | block |
A block object |
|
type(parallel_obj), | intent(in), | target | :: | parallel |
parallel structure from main program |
Open a hdf5 file with ngadata
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ngadata_obj), | intent(inout) | :: | this |
A NGAbin object |
||
character(len=*), | intent(in) | :: | flag |
File access flag |
Set the file view
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ngadata_obj), | intent(inout) | :: | this |
A NGAbin object |
||
character(len=*), | intent(in) | :: | name |
Variable name |
||
class(*), | intent(in) | :: | array(:,:,:) |
3-D data array |
||
integer, | intent(in) | :: | lo(3) |
Low bounds |
||
integer, | intent(in) | :: | hi(3) |
High bounds |
Create MPI types needed for IO
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ngadata_obj), | intent(inout) | :: | this |
A NGAbin object |
Read Eulerian/3D data from a hdf5 file with h5hut
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ngadata_obj), | intent(inout) | :: | this |
A NGAbin object |
||
character(len=*), | intent(in) | :: | name |
Variable name |
||
class(*), | intent(out) | :: | array(:,:,:) |
3-D data array |
||
integer, | intent(in) | :: | lo(3) |
Low bounds |
||
integer, | intent(in) | :: | hi(3) |
High bounds |