Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ocean-mixing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
inmcm-mirror
ocean-mixing
Commits
c4824763
Commit
c4824763
authored
6 months ago
by
Evgeny Mortikov
Browse files
Options
Downloads
Patches
Plain Diff
model setup update
parent
8ccaf9bb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
obl_main.f90
+15
-22
15 additions, 22 deletions
obl_main.f90
with
15 additions
and
22 deletions
obl_main.f90
+
15
−
22
View file @
c4824763
...
...
@@ -98,7 +98,6 @@ program obl_main
character
(
len
=
128
)
::
arg
character
(
len
=
128
),
parameter
::
arg_key_help
=
'--help'
character
(
len
=
128
),
parameter
::
arg_key_setup
=
'--setup'
character
(
len
=
128
),
parameter
::
arg_key_config
=
"--config"
integer
::
i
,
status
...
...
@@ -143,9 +142,9 @@ program obl_main
return
end
if
if
(
trim
(
arg
)
==
trim
(
arg_key_
setup
))
then
if
(
trim
(
arg
)
==
trim
(
arg_key_
config
))
then
if
(
i
==
num_args
)
then
write
(
*
,
*
)
' FAILURE! > missing
setup
[key] argument'
write
(
*
,
*
)
' FAILURE! > missing
config
[key] argument'
ierr
=
1
! signal ERROR
return
end
if
...
...
@@ -153,19 +152,8 @@ program obl_main
call
get_command_argument
(
i
+
1
,
arg
)
obl_setup
=
get_setup_id
(
arg
)
if
(
obl_setup
==
-1
)
then
write
(
*
,
*
)
' FAILURE! > unknown setup [key]: '
,
trim
(
arg
)
ierr
=
1
! signal ERROR
return
end
if
else
if
(
trim
(
arg
)
==
trim
(
arg_key_config
))
then
if
(
i
==
num_args
)
then
write
(
*
,
*
)
' FAILURE! > missing configuration file [key] argument'
ierr
=
1
! signal ERROR
return
end
if
call
get_command_argument
(
i
+
1
,
arg
)
#ifdef USE_CONFIG_PARSER
!< try reading configuration file
call
c_config_run
(
trim
(
arg
)//
C_NULL_CHAR
,
status
)
if
(
status
==
0
)
then
write
(
*
,
*
)
' FAILURE! > unable to parse configuration file: '
,
trim
(
arg
)
...
...
@@ -175,8 +163,13 @@ program obl_main
!< forcing configuration file setup
obl_setup
=
999
#else
write
(
*
,
*
)
' FAILURE! > unknown config [key]: '
,
trim
(
arg
)
ierr
=
1
! signal ERROR
return
#endif
end
if
endif
enddo
!< setting grid
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment