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) )
120 allocate( this%face_val(lcmesh%refElem%NfpTot,lcmesh%Ne) )
122 log_error(
"LocalMeshFieldBase_Init",*)
"Unexcepted data_type", data_type_
127 end subroutine localmeshfieldbase_init
131 subroutine localmeshfieldbase_final( this )
136 if (
allocated(this%val) )
deallocate( this%val )
137 if (
allocated(this%face_val) )
deallocate( this%face_val )
140 end subroutine localmeshfieldbase_final
146 subroutine localmeshfield1d_init( this, mesh, data_type )
150 integer,
intent(in),
optional :: data_type
154 call localmeshfieldbase_init( this, mesh, data_type )
157 end subroutine localmeshfield1d_init
161 subroutine localmeshfield1d_final( this )
166 call localmeshfieldbase_final( this )
169 end subroutine localmeshfield1d_final
175 subroutine localmeshfield2d_init( this, mesh, data_type )
179 integer,
intent(in),
optional :: data_type
183 call localmeshfieldbase_init( this, mesh, data_type )
186 end subroutine localmeshfield2d_init
190 subroutine localmeshfield2d_final( this )
195 call localmeshfieldbase_final( this )
197 end subroutine localmeshfield2d_final
203 subroutine localmeshfield3d_init( this, mesh, data_type )
207 integer,
optional,
intent(in) :: data_type
211 call localmeshfieldbase_init( this, mesh, data_type )
214 end subroutine localmeshfield3d_init
218 subroutine localmeshfield3d_final( this )
223 call localmeshfieldbase_final( this )
225 end subroutine localmeshfield3d_final
module FElib / Element / Base
module FElib / Mesh / Local 1D
subroutine, public localmesh1d_final(this, is_generated)
subroutine, public localmesh1d_init(this, lcdomid, refelem, myrank)
module FElib / Mesh / Local 2D
subroutine, public localmesh2d_final(this, is_generated)
subroutine, public localmesh2d_init(this, lcdomid, refelem, myrank)
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 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)