44 real(rp),
allocatable :: val(:,:)
45 real(rp),
allocatable :: face_val(:,:)
56 procedure :: init => localmeshfield1d_init
57 procedure :: final => localmeshfield1d_final
64 procedure :: init => localmeshfield2d_init
65 procedure :: final => localmeshfield2d_final
72 procedure :: init => localmeshfield3d_init
73 procedure :: final => localmeshfield3d_final
93 private :: localmeshfieldbase_init
94 private :: localmeshfieldbase_final
100 subroutine localmeshfieldbase_init( this, lcmesh, data_type )
101 use scale_prc,
only: prc_abort
105 integer,
intent(in),
optional :: data_type
107 integer :: data_type_
110 if (
present(data_type) )
then
111 data_type_ = data_type
116 select case( data_type_ )
118 allocate( this%val(lcmesh%refElem%Np,lcmesh%NeA) )
121 allocate( this%face_val(lcmesh%refElem%NfpTot,lcmesh%Ne) )
124 log_error(
"LocalMeshFieldBase_Init",*)
"Unexcepted data_type", data_type_
130 end subroutine localmeshfieldbase_init
134 subroutine localmeshfieldbase_final( this )
139 if (
allocated(this%val) )
then
141 deallocate( this%val )
143 if (
allocated(this%face_val) )
then
145 deallocate( this%face_val )
149 end subroutine localmeshfieldbase_final
155 subroutine localmeshfield1d_init( this, mesh, data_type )
159 integer,
intent(in),
optional :: data_type
163 call localmeshfieldbase_init( this, mesh, data_type )
166 end subroutine localmeshfield1d_init
170 subroutine localmeshfield1d_final( this )
175 call localmeshfieldbase_final( this )
178 end subroutine localmeshfield1d_final
184 subroutine localmeshfield2d_init( this, mesh, data_type )
188 integer,
intent(in),
optional :: data_type
192 call localmeshfieldbase_init( this, mesh, data_type )
195 end subroutine localmeshfield2d_init
199 subroutine localmeshfield2d_final( this )
204 call localmeshfieldbase_final( this )
206 end subroutine localmeshfield2d_final
212 subroutine localmeshfield3d_init( this, mesh, data_type )
216 integer,
optional,
intent(in) :: data_type
220 call localmeshfieldbase_init( this, mesh, data_type )
223 end subroutine localmeshfield3d_init
227 subroutine localmeshfield3d_final( this )
232 call localmeshfieldbase_final( this )
234 end subroutine localmeshfield3d_final
module FElib / Element / Base
module FElib / Mesh / Local 1D
subroutine, public localmesh1d_final(this, is_generated)
Finalize an object to manage a local mesh for 1D domain.
subroutine, public localmesh1d_init(this, lcdomid, refelem, myrank)
Initialize an object to manage a local mesh for 1D domain.
module FElib / Mesh / Local 2D
subroutine, public localmesh2d_final(this, is_generated)
Finalize an object to manage a local mesh for 2D domain.
subroutine, public localmesh2d_init(this, lcdomid, refelem, myrank)
Initialize an object to manage a local mesh for 2D domain.
module FElib / Mesh / Local 3D
subroutine, public localmesh3d_final(this, is_generated)
Finalize an object to manage a 3D local computational domain.
subroutine, public localmesh3d_init(this, lcdomid, refelem, myrank)
Initialize an object to manage a 3D local computational domain.
module FElib / Mesh / Local, Base
module FElib / Data / base
integer, parameter, public local_meshfield_type_nodes_faceval
ID of data type with a field on face nodes in local mesh.
integer, parameter, public local_meshfield_type_nodes_val
ID of data type with a field on all nodes in local mesh.
Derived type representing a 2D reference element.
Derived type representing a local mesh for 1D domain.
Derived type representing a local mesh for 2D domain.
Derived type to manage a local 3D computational domain.
Derived type to manage a local computational domain (base type)
Derived type representing a field with 1D local mesh.
Derived type representing a field with 2D local mesh.
Derived type representing a field with 3D local mesh.
Derived type representing a field with local mesh (base type)