45 character(len=H_SHORT) :: varname
46 character(len=H_SHORT) :: unit
58 integer,
intent(in) :: domID
70 procedure :: final => meshfield1d_final
71 procedure :: getlocalmeshfield => meshfield1d_get_localmeshfield
78 procedure :: init => meshfield2d_init
79 procedure :: final => meshfield2d_final
80 procedure :: getlocalmeshfield => meshfield2d_get_localmeshfield
87 procedure :: init => meshfield3d_init
88 procedure :: final => meshfield3d_final
89 procedure :: getlocalmeshfield => meshfield3d_get_localmeshfield
118 character(len=*),
intent(in) :: varname
119 character(len=*),
intent(in) :: units
121 integer,
intent(in),
optional :: data_type
126 this%varname = varname
132 allocate( this%local(mesh%LOCAL_MESH_NUM) )
133 do n=1, mesh%LOCAL_MESH_NUM
134 call this%local(n)%Init( mesh%lcmesh_list(n), data_type )
141 subroutine meshfield1d_final(this)
148 do n=1,
size(this%local)
149 call this%local(n)%Final()
151 deallocate( this%local )
154 end subroutine meshfield1d_final
157 subroutine meshfield1d_get_localmeshfield( this, domID, ptr_lcmeshField )
161 integer,
intent(in) :: domID
165 ptr_lcmeshfield => this%local(domid)
167 end subroutine meshfield1d_get_localmeshfield
172 subroutine meshfield2d_init( this, varname, units, mesh, data_type )
176 character(len=*),
intent(in) :: varname
177 character(len=*),
intent(in) :: units
179 integer,
intent(in),
optional :: data_type
184 this%varname = varname
189 allocate( this%local(mesh%LOCAL_MESH_NUM) )
190 do n=1, mesh%LOCAL_MESH_NUM
191 call this%local(n)%Init( mesh%lcmesh_list(n), data_type )
195 end subroutine meshfield2d_init
198 subroutine meshfield2d_final(this)
206 do n=1,
size(this%local)
207 call this%local(n)%Final()
209 deallocate( this%local )
212 end subroutine meshfield2d_final
215 subroutine meshfield2d_get_localmeshfield( this, domID, ptr_lcmeshField )
219 integer,
intent(in) :: domID
223 ptr_lcmeshfield => this%local(domid)
225 end subroutine meshfield2d_get_localmeshfield
230 subroutine meshfield3d_init( this, varname, units, mesh, data_type )
234 character(len=*),
intent(in) :: varname
235 character(len=*),
intent(in) :: units
237 integer,
intent(in),
optional :: data_type
242 this%varname = varname
247 allocate( this%local(mesh%LOCAL_MESH_NUM) )
248 do n=1, mesh%LOCAL_MESH_NUM
249 call this%local(n)%Init( mesh%lcmesh_list(n), data_type )
253 end subroutine meshfield3d_init
256 subroutine meshfield3d_final(this)
264 do n=1,
size(this%local)
265 call this%local(n)%Final()
267 deallocate( this%local )
270 end subroutine meshfield3d_final
272 subroutine meshfield3d_get_localmeshfield( this, domID, ptr_lcmeshField )
276 integer,
intent(in) :: domID
280 ptr_lcmeshfield => this%local(domid)
282 end subroutine meshfield3d_get_localmeshfield
284end module scale_meshfield_base
module FElib / Element / Base
module FElib / Mesh / Local 1D
module FElib / Mesh / Local 2D
module FElib / Mesh / Local 3D
module FElib / Data / base
module FElib / Mesh / Base 1D
module FElib / Mesh / Base 2D
module FElib / Mesh / Base 3D
module FElib / Data / base
subroutine meshfield1d_init(this, varname, units, mesh, data_type)