42 integer(I4P):: n = 0_i4p
43 real(R8P):: dh = 0._r8p
44 real(R8P),
allocatable:: x(:)
45 real(R8P),
allocatable:: y(:)
47 integer(I4P):: nnode = 0_i4p
48 integer(I4P):: nface = 0_i4p
49 integer(I4P):: ncell = 0_i4p
55 procedure, non_overridable::
finalize
56 procedure, non_overridable::
pprint
71 integer(I4P),
intent(IN):: n
80 self%dh = 1._r8p/
real(n,
r8p)
81 if (
allocated(self%x))
deallocate(self%x) ;
allocate(self%x(0:n))
82 if (
allocated(self%y))
deallocate(self%y) ;
allocate(self%y(0:n))
84 self%x(ij) =
real(ij,
r8p)/
real(n,
r8p)
91 if (
allocated(self%node))
deallocate(self%node) ;
allocate(self%node(1:nnode))
92 if (
allocated(self%face))
deallocate(self%face) ;
allocate(self%face(1:nface))
93 if (
allocated(self%cell))
deallocate(self%cell) ;
allocate(self%cell(1:ncell))
120 if (
allocated(self%x))
deallocate(self%x)
121 if (
allocated(self%y))
deallocate(self%y)
128 function pprint(self,unit) result(err)
132 integer(I4P),
intent(IN):: unit
138 write(unit,
'(A)',iostat=err)
' N='//
str(n=self%N)
139 if (
allocated(self%x).AND.
allocated(self%y))
then
140 do ij=lbound(self%x,dim=1),ubound(self%x,dim=1)
141 write(unit,
'(A)',iostat=err)
' ij='//
str(n=ij)//
' x='//
str(n=self%x(ij))//
' y='//
str(n=self%y(ij))
144 write(unit,
'(A)',iostat=err)
' dh='//
str(n=self%dh)
Derived type containing conservative variables.
procedure, non_overridable finalize
This module contains the definition of Type_Node and its procedures.
This module contains the definition of Type_Face and its procedures.
Derived type containing conservative variables.
Procedure for converting number, real and integer, to string (number to string type casting); logical...
integer, parameter, public r8p
15 digits, range ; 64 bits.
Derived type containing conservative variables.
procedure, non_overridable initialize
This module contains the definition of Type_Mesh and its procedures.
Derived type containing conservative variables.
procedure, non_overridable pprint
This module contains the definition of Type_Cell_Quad and its procedures.
Module IR_Precision makes available some portable kind-parameters and some useful procedures to deal ...