FE-Project
Loading...
Searching...
No Matches
scale_localmesh_3d Module Reference

module FElib / Mesh / Local 3D More...

Data Types

type  localmesh3d
 Derived type to manage a local 3D computational domain. More...

Functions/Subroutines

subroutine, public localmesh3d_init (this, lcdomid, refelem, myrank)
 Initialize an object to manage a 3D local computational domain.
subroutine, public localmesh3d_final (this, is_generated)
 Finalize an object to manage a 3D local computational domain.

Detailed Description

module FElib / Mesh / Local 3D

Description
Module to manage 3D local mesh for element-based methods
Author
Yuta Kawai, Team SCALE

Function/Subroutine Documentation

◆ localmesh3d_init()

subroutine, public scale_localmesh_3d::localmesh3d_init ( class(localmesh3d), intent(inout) this,
integer, intent(in) lcdomid,
class(elementbase3d), intent(in), target refelem,
integer, intent(in), optional myrank )

Initialize an object to manage a 3D local computational domain.

Definition at line 86 of file scale_localmesh_3d.F90.

88 implicit none
89
90 class(LocalMesh3D), intent(inout) :: this
91 integer, intent(in) :: lcdomID
92 class(ElementBase3D), intent(in), target :: refElem
93 integer, intent(in), optional :: myrank
94 !-------------------------------------------------
95
96 this%refElem3D => refelem
97 nullify( this%lcmesh2D )
98
99 call localmeshbase_init( this, lcdomid, refelem, 3, myrank )
100
101 return

References scale_localmesh_base::localmeshbase_init().

Referenced by scale_localmesh_3d::localmesh3d::getvmapz3d(), and scale_mesh_base3d::meshbase3d_init().

◆ localmesh3d_final()

subroutine, public scale_localmesh_3d::localmesh3d_final ( type(localmesh3d), intent(inout) this,
logical, intent(in) is_generated )

Finalize an object to manage a 3D local computational domain.

Definition at line 106 of file scale_localmesh_3d.F90.

107 implicit none
108 type(LocalMesh3D), intent(inout) :: this
109 logical, intent(in) :: is_generated
110 !-------------------------------------------------
111
112 call localmeshbase_final( this, is_generated )
113 if (is_generated) then
114 deallocate( this%zS, this%Sz )
115 deallocate( this%GI3, this%GsqrtH )
116 deallocate( this%zlev )
117 deallocate( this%gam )
118 deallocate( this%lon2D, this%lat2D )
119 deallocate( this%EMap3Dto2D )
120 end if
121
122 return

References scale_localmesh_base::localmeshbase_final().

Referenced by scale_localmesh_3d::localmesh3d::getvmapz3d(), and scale_mesh_base3d::meshbase3d_final().