My Project
namelist.f90
Go to the documentation of this file.
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 !/===========================================================================/
13 ! Copyright (c) 2007, The University of Massachusetts Dartmouth
14 ! Produced at the School of Marine Science & Technology
15 ! Marine Ecosystem Dynamics Modeling group
16 ! All rights reserved.
17 !
18 ! FVCOM has been developed by the joint UMASSD-WHOI research team. For
19 ! details of authorship and attribution of credit please see the FVCOM
20 ! technical manual or contact the MEDM group.
21 !
22 !
23 ! This file is part of FVCOM. For details, see http://fvcom.smast.umassd.edu
24 ! The full copyright notice is contained in the file COPYRIGHT located in the
25 ! root directory of the FVCOM code. This original header must be maintained
26 ! in all distributed versions.
27 !
28 ! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29 ! AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
30 ! THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
31 ! PURPOSE ARE DISCLAIMED.
32 !
33 !/---------------------------------------------------------------------------/
34 ! CVS VERSION INFORMATION
35 ! $Id$
36 ! $Name$
37 ! $Revision$
38 !/===========================================================================/
39 
40 SUBROUTINE namelist
42  USE control
43  USE mod_input
44  USE mod_nesting
47 
48  IMPLICIT NONE
49 
50 
51  !==============================================================================!
52  ! SET DEFAULT VALUES IN NAME LIST
53  !==============================================================================!
55 
57 
58 
60 
61  ! IF FVCOM IS ONLY PRINTING A BLANK NAME LIST FOR A NEW CASE:
62  if (blank_namelist) then
63  CALL name_list_print
64 
65 
66 
68 
69  CALL pshutdown
70  end if
71 
72  !==============================================================================!
73  ! SETUP MODEL RUN PARAMETERS !
74  !==============================================================================!
75 
76  !READ DATA IN THE NAME LIST FILE
77  CALL name_list_read ! ALL PROCS READ THIS
78 
80  IF(nesting_on .AND. serial)THEN
81  IF(msr) WRITE(*,*) 'PLEASE USE MORE THAN ONE PROCESSOR TO RUN NESTING. STOP RUNNING...'
82  CALL pstop
83  END IF
84  IF(ncnest_on .AND. serial)THEN
85  IF(msr) WRITE(*,*) 'PLEASE USE MORE THAN ONE PROCESSOR TO RUN NCNEST. STOP RUNNING...'
86  CALL pstop
87  END IF
88 
89 
90 
92 
93  !PRINT THE NAME LIST DATA TO THE SCREEN FOR THE LOG
95 
96 
97 END SUBROUTINE namelist
logical serial
Definition: mod_main.f90:100
logical msr
Definition: mod_main.f90:101
logical function dbg_set(vrb)
Definition: mod_utils.f90:182
subroutine namelist
Definition: namelist.f90:41
subroutine name_list_read
Definition: mod_input.f90:544
logical ncnest_on
subroutine name_list_print
Definition: mod_input.f90:512
subroutine name_list_initialize_nest
logical nesting_on
subroutine pstop
Definition: mod_utils.f90:273
subroutine name_list_read_nest
logical blank_namelist
Definition: mod_main.f90:120
subroutine pshutdown
Definition: mod_utils.f90:280
subroutine name_list_initialize
Definition: mod_input.f90:216
integer, parameter dbg_log
Definition: mod_utils.f90:65