Skip to content

motion_test_domain_object

MOTIOn test: prototype of domain to be saved.

Source: src/tests/motion_write_xdmf_file_test.F90

Dependencies

Contents

Derived Types

domain_object

Prototype of domain to be saved. For the sake of simplicity all domain blocks have the same cells number and spacing.

Components

NameTypeAttributesDescription
topologycharacter(len=:)allocatableTopology.
procs_numberinteger(kind=I4P)Number of MPI processes.
myrankinteger(kind=I4P)MPI ID process.
nb_procinteger(kind=I4P)Number of blocks for each MPI process.
nbinteger(kind=I4P)Total number of blocks (all processes).
mynbinteger(kind=I4P)Number of blocks of current process [start-b,end-b].
nvinteger(kind=I4P)Number of fields variables (scalar, vector...).
nvscalarinteger(kind=I4P)Last index of scalar fields variables.
gcinteger(kind=I4P)Ghost cells number.
timereal(kind=R8P)Time of domain solution.
nijkinteger(kind=HSIZE_T)Blocks dimensions.
dxyzreal(kind=R8P)Blocks space steps for cartesian uniform grid.
dxreal(kind=R8P)allocatableBlocks space steps for cartesian grid.
dyreal(kind=R8P)allocatableBlocks space steps for cartesian grid.
dzreal(kind=R8P)allocatableBlocks space steps for cartesian grid.
eminreal(kind=R8P)allocatableBlocks minimum extents [3,nb].
xreal(kind=R8P)allocatableNodes coordinates for cartesian grid [0:nijk(ijk),nb].
yreal(kind=R8P)allocatableNodes coordinates for cartesian grid [0:nijk(ijk),nb].
zreal(kind=R8P)allocatableNodes coordinates for cartesian grid [0:nijk(ijk),nb].
nodesreal(kind=R8P)allocatableNodes coordinates for curvilinear grid [3,0:nijk,nb].
fieldreal(kind=R8P)allocatableFields [1:nv,1-gc:ni+gc,1-gc:nj+gc,1-gc:nk+gc,1:nb].
field_R4Preal(kind=R4P)allocatableFields [1:nv,1-gc:ni+gc,1-gc:nj+gc,1-gc:nk+gc,1:nb], R4P.
field_I8Pinteger(kind=I8P)allocatableFields [1:nv,1-gc:ni+gc,1-gc:nj+gc,1-gc:nk+gc,1:nb], I8P.
field_I4Pinteger(kind=I4P)allocatableFields [1:nv,1-gc:ni+gc,1-gc:nj+gc,1-gc:nk+gc,1:nb], I4P.
field_I2Pinteger(kind=I2P)allocatableFields [1:nv,1-gc:ni+gc,1-gc:nj+gc,1-gc:nk+gc,1:nb], I2P.
field_I1Pinteger(kind=I1P)allocatableFields [1:nv,1-gc:ni+gc,1-gc:nj+gc,1-gc:nk+gc,1:nb], I1P.
field_nametype(string)allocatableFields names [1:nv].
errorinteger(kind=I4P)Error status.

Type-Bound Procedures

NameAttributesDescription
initializepass(self)Initialize domain.

Subroutines

initialize

Initialize domain.

fortran
subroutine initialize(self, topology, nb, nv, nvscalar, gc, nijk, field_name, time, dxyz, dx, dy, dz)

Arguments

NameTypeIntentAttributesDescription
selfclass(domain_object)inoutDomain.
topologycharacter(len=*)inTopology.
nbinteger(kind=I4P)inNumber of blocks.
nvinteger(kind=I4P)inNumber of fields variables.
nvscalarinteger(kind=I4P)inLast index of scalar fields variables.
gcinteger(kind=I4P)inGhost cells number.
nijkinteger(kind=HSIZE_T)inBlocks dimensions.
field_namecharacter(len=*)inFields names.
timereal(kind=R8P)inTime of domain solution.
dxyzreal(kind=R8P)inoptionalBlocks space steps for cartesian uniform grids.
dxreal(kind=R8P)inoptionalBlocks space steps for cartesian grids.
dyreal(kind=R8P)inoptionalBlocks space steps for cartesian grids.
dzreal(kind=R8P)inoptionalBlocks space steps for cartesian grids.

Call graph