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

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

Data Types

type  localmesh2d
 Derived type representing a local mesh for 2D domain. More...

Functions/Subroutines

subroutine, public localmesh2d_init (this, lcdomid, refelem, myrank)
 Initialize an object to manage a local mesh for 2D domain.
subroutine, public localmesh2d_final (this, is_generated)
 Finalize an object to manage a local mesh for 2D domain.

Detailed Description

module FElib / Mesh / Local 2D

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

Function/Subroutine Documentation

◆ localmesh2d_init()

subroutine, public scale_localmesh_2d::localmesh2d_init ( class(localmesh2d), intent(inout) this,
integer, intent(in) lcdomid,
class(elementbase2d), intent(in), target refelem,
integer, intent(in), optional myrank )

Initialize an object to manage a local mesh for 2D domain.

Definition at line 66 of file scale_localmesh_2d.F90.

68
69 implicit none
70
71 class(LocalMesh2D), intent(inout) :: this
72 integer, intent(in) :: lcdomID
73 class(ElementBase2D), intent(in), target :: refElem
74 integer, intent(in), optional :: myrank
75 !-------------------------------------------------
76
77 this%refElem2D => refelem
78 call localmeshbase_init(this, lcdomid, refelem, 2, myrank)
79 !$acc enter data copyin(this)
80 return

References scale_localmesh_base::localmeshbase_init().

Referenced by scale_mesh_base2d::meshbase2d_init().

◆ localmesh2d_final()

subroutine, public scale_localmesh_2d::localmesh2d_final ( type(localmesh2d), intent(inout) this,
logical, intent(in) is_generated )

Finalize an object to manage a local mesh for 2D domain.

Definition at line 85 of file scale_localmesh_2d.F90.

86 implicit none
87 type(LocalMesh2D), intent(inout) :: this
88 logical, intent(in) :: is_generated
89 !-------------------------------------------------
90
91 if (is_generated) then
92 !$acc exit data delete(this%G_ij, this%GIJ)
93 deallocate( this%G_ij, this%GIJ )
94 !$acc exit data delete(this%lon, this%lat)
95 deallocate( this%lon, this%lat )
96 end if
97 call localmeshbase_final( this, is_generated )
98 !$acc exit data delete(this)
99 return

References scale_localmesh_base::localmeshbase_final().

Referenced by scale_mesh_base2d::meshbase2d_final().