FE-Project
Loading...
Searching...
No Matches
Data Types | Functions/Subroutines
scale_meshfield_base Module Reference

module FElib / Data / base More...

Data Types

type  meshfield1d
 
type  meshfield2d
 
type  meshfield3d
 
type  meshfield3dlist
 
type  meshfieldbase
 
interface  meshfieldbase_get_localmeshfield
 

Functions/Subroutines

subroutine meshfield1d_init (this, varname, units, mesh, data_type)
 

Detailed Description

module FElib / Data / base

Description
A module for managing field data with FEM
Author
Yuta Kawai, Team SCALE

Function/Subroutine Documentation

◆ meshfield1d_init()

subroutine scale_meshfield_base::meshfield1d_init ( class(meshfield1d), intent(inout) this,
character(len=*), intent(in) varname,
character(len=*), intent(in) units,
class(meshbase1d), intent(in), target mesh,
integer, intent(in), optional data_type )

Definition at line 115 of file scale_meshfield_base.F90.

116 implicit none
117 class(MeshField1D), intent(inout) :: this
118 character(len=*), intent(in) :: varname
119 character(len=*), intent(in) :: units
120 class(MeshBase1D), target, intent(in) :: mesh
121 integer, intent(in), optional :: data_type
122
123 integer :: n
124 !-----------------------------------------------------------------------------
125
126 this%varname = varname
127 this%unit = units
128 this%mesh => mesh
129 this%hist_id = -1
130 this%monitor_id = -1
131
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 )
135 end do
136
137 return