ITM Grid Service Library: Fortran 90
Main Page
Data Types List
Files
File List
File Members
All
Classes
Files
Functions
Variables
itm_grid.f90
Go to the documentation of this file.
1
module
itm_grid
2
3
!use itm_types , ITM_R8 => R8, ITM_R4 => R4
4
use
itm_assert
5
use
euitm_schemas
! IGNORE
6
use
itm_string
7
8
use
itm_grid_common
9
use
itm_grid_access
10
use
itm_grid_structured
11
use
itm_grid_object
12
use
itm_grid_objectlist
13
use
itm_grid_subgrid
14
15
implicit none
16
17
contains
18
19
20
!> Check a grid description for possible errors
21
22
subroutine
gridsanitycheck
( grid, doStop )
23
type(
type_complexgrid
)
,
intent(in)
:: grid
24
logical
,
intent(in)
,
optional
:: dostop
25
26
! integer
27
integer
:: is
28
29
! disable immediate stopping in assertion module
30
call
assertsetstopmode
( dostop = .false. )
31
32
do
is = 1,
size
( grid % spaces )
33
call
assertsetmsgprefix
(
"Space "
//
itmint2str
( is ) )
34
call
gridsanitycheckspace
( grid % spaces( is ) )
35
end do
36
37
! Output error message if any errors found, and stop (if requested)
38
call
assertstoponfailed
(
"Grid contained errors"
, dostop )
39
40
41
! reset assertion module
42
call
assertreset
()
43
44
! re-enable immediate stop for assertions
45
call
assertsetstopmode
()
46
47
! clear message prefix
48
call
assertsetmsgprefix
()
49
50
end subroutine
gridsanitycheck
51
52
53
!> Check a grid space description for possible errors
54
55
subroutine
gridsanitycheckspace
( space )
56
type(
type_complexgrid_space
)
,
intent(in)
:: space
57
58
call
assert
( (
size
( space % coordtype ) <=
size
( space % objects ) ), &
59
&
"coordtype, objects,have inconsistent size"
)
60
61
62
end subroutine
gridsanitycheckspace
63
64
65
end module
itm_grid
src
service
itm_grid.f90
Generated on Wed Sep 18 2013 11:25:16 for ITM Grid Service Library: Fortran 90 by
1.8.1.2