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

module FElib / Mesh / Topography More...

Data Types

type  meshtopography
 Derived type to manage topography datat and setup vertical coordinate metric. More...

Functions/Subroutines

subroutine meshtopography_init (this, varname, mesh)

Detailed Description

module FElib / Mesh / Topography

Description
A module to manage vertical coordinate with topography
Author
Yuta Kawai, Team SCALE

Function/Subroutine Documentation

◆ meshtopography_init()

subroutine scale_mesh_topography::meshtopography_init ( class(meshtopography), intent(inout) this,
character(len=*), intent(in) varname,
class(meshbase2d), intent(in), target mesh )

Definition at line 65 of file scale_mesh_topography.F90.

66 implicit none
67
68 class(MeshTopography), intent(inout) :: this
69 character(len=*), intent(in) :: varname
70 class(MeshBase2D), intent(in), target :: mesh
71
72 integer :: n
73 !-----------------------------------------------------------------------------
74
75 call this%topo%Init( varname, "m", mesh )
76
77 do n=1, mesh%LOCAL_MESH_NUM
78!$omp parallel workshare
79 this%topo%local(n)%val(:,:) = 0.0_rp
80!$omp end parallel workshare
81 !$acc update device(this%topo%local(n)%val)
82 end do
83
84 return

References scale_meshutil_vcoord::meshutil_vcoord_getmetric().