SCALE-RM
Functions/Subroutines
mod_convert Module Reference

module CONVERT driver More...

Functions/Subroutines

subroutine, public convert_setup
 Setup. More...
 
subroutine, public convert
 Driver. More...
 

Detailed Description

module CONVERT driver

Description
administrator of convert tools
Author
Team SCALE
NAMELIST
  • PARAM_CONVERT
    nametypedefault valuecomment
    CONVERT_NONE logical .false.
    CONVERT_TOPO logical .false.
    CONVERT_LANDUSE logical .false.

History Output
No history output

Function/Subroutine Documentation

◆ convert_setup()

subroutine, public mod_convert::convert_setup ( )

Setup.

Definition at line 51 of file mod_convert.f90.

References mod_cnvlanduse::cnvlanduse_setup(), mod_cnvtopo::cnvtopo_setup(), scale_stdio::io_fid_conf, scale_stdio::io_fid_log, scale_stdio::io_fid_nml, scale_stdio::io_l, scale_stdio::io_nml, and scale_process::prc_mpistop().

Referenced by mod_rm_prep::scalerm_prep().

51  use scale_process, only: &
53  use mod_cnvtopo, only: &
55  use mod_cnvlanduse, only: &
57  implicit none
58 
59  namelist / param_convert / &
60  convert_none, &
61  convert_topo, &
62  convert_landuse
63 
64  integer :: ierr
65  !---------------------------------------------------------------------------
66 
67  if( io_l ) write(io_fid_log,*)
68  if( io_l ) write(io_fid_log,*) '++++++ Module[convert] / Categ[preprocess] / Origin[SCALE-RM]'
69 
70  !--- read namelist
71  rewind(io_fid_conf)
72  read(io_fid_conf,nml=param_convert,iostat=ierr)
73  if( ierr < 0 ) then !--- missing
74  if( io_l ) write(io_fid_log,*) '*** Not found namelist. Default used.'
75  elseif( ierr > 0 ) then !--- fatal error
76  write(*,*) 'xxx Not appropriate names in namelist PARAM_CONVERT. Check!'
77  call prc_mpistop
78  endif
79  if( io_nml ) write(io_fid_nml,nml=param_convert)
80 
81  ! set up TOPO
82  if( convert_topo ) then
83  call cnvtopo_setup
84  end if
85 
86  ! set up LANDUSE
87  if( convert_landuse ) then
88  call cnvlanduse_setup
89  end if
90 
91  return
subroutine, public prc_mpistop
Abort MPI.
module Convert topography
Definition: mod_cnvtopo.f90:10
module PROCESS
subroutine, public cnvtopo_setup
Setup.
Definition: mod_cnvtopo.f90:71
module Convert LandUseIndex
subroutine, public cnvlanduse_setup
Setup.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ convert()

subroutine, public mod_convert::convert ( )

Driver.

Definition at line 97 of file mod_convert.f90.

References mod_cnvlanduse::cnvlanduse(), mod_cnvtopo::cnvtopo(), scale_stdio::io_fid_log, scale_stdio::io_l, and scale_process::prc_mpistop().

Referenced by mod_rm_prep::scalerm_prep().

97  use scale_process, only: &
99  use mod_cnvtopo, only: &
100  cnvtopo
101  use mod_cnvlanduse, only: &
102  cnvlanduse
103  implicit none
104  !---------------------------------------------------------------------------
105 
106  if ( convert_none ) then
107  if( io_l ) write(io_fid_log,*)
108  if( io_l ) write(io_fid_log,*) '++++++ SKIP CONVERT BOUNDARY DATA ++++++'
109  else
110  if( io_l ) write(io_fid_log,*)
111  if( io_l ) write(io_fid_log,*) '++++++ START CONVERT BOUNDARY DATA ++++++'
112 
113  if( convert_topo ) then
114  call cnvtopo
115  end if
116 
117  if( convert_landuse ) then
118  call cnvlanduse
119  end if
120 
121  if( io_l ) write(io_fid_log,*) '++++++ END CONVERT BOUNDARY DATA ++++++'
122  endif
123 
124  return
subroutine, public prc_mpistop
Abort MPI.
module Convert topography
Definition: mod_cnvtopo.f90:10
subroutine, public cnvlanduse
Driver.
module PROCESS
module Convert LandUseIndex
subroutine, public cnvtopo
Driver.
Here is the call graph for this function:
Here is the caller graph for this function: