Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sfx
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
sfx
Commits
8ce1f52b
Commit
8ce1f52b
authored
6 months ago
by
Evgeny Mortikov
Browse files
Options
Downloads
Patches
Plain Diff
minor setup update
parent
6d2c8445
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
srcF/sfx_main.f90
+7
-11
7 additions, 11 deletions
srcF/sfx_main.f90
with
7 additions
and
11 deletions
srcF/sfx_main.f90
+
7
−
11
View file @
8ce1f52b
...
...
@@ -111,7 +111,7 @@ program sfx_main
write
(
*
,
*
)
' --dataset [key]'
write
(
*
,
*
)
' key = mosaic (default) || irgason || sheba'
write
(
*
,
*
)
' = lake || papa || toga || user [files]'
write
(
*
,
*
)
' files = in-common-file in-file
out-file
'
write
(
*
,
*
)
' files = in-common-file in-file'
write
(
*
,
*
)
' --output [file]'
write
(
*
,
*
)
' set output filename '
write
(
*
,
*
)
' --nmax [value]'
...
...
@@ -123,6 +123,7 @@ program sfx_main
write
(
*
,
*
)
' FAILURE! > missing model [key] argument'
stop
end
if
call
get_command_argument
(
i
+
1
,
arg
)
model_id
=
get_model_id
(
arg
)
if
(
model_id
==
-1
)
then
...
...
@@ -135,6 +136,7 @@ program sfx_main
write
(
*
,
*
)
' FAILURE! > missing dataset [key] argument'
stop
end
if
call
get_command_argument
(
i
+
1
,
arg
)
dataset_id
=
get_dataset_id
(
arg
)
if
(
dataset_id
==
-1
)
then
...
...
@@ -143,22 +145,21 @@ program sfx_main
end
if
if
(
dataset_id
==
dataset_user
)
then
if
(
i
+
4
>
num_args
)
then
if
(
i
+
3
>
num_args
)
then
write
(
*
,
*
)
' FAILURE! > incorrect arguments for [user] dataset'
stop
end
if
call
get_command_argument
(
i
+
2
,
filename_in_common
)
call
get_command_argument
(
i
+
3
,
filename_in
)
call
get_command_argument
(
i
+
4
,
filename_out
)
end
if
end
if
if
(
trim
(
arg
)
==
trim
(
arg_key_output
))
then
if
(
i
==
num_args
)
then
write
(
*
,
*
)
' FAILURE! > missing
datase
t [key] argument'
write
(
*
,
*
)
' FAILURE! > missing
outpu
t [key] argument'
stop
end
if
is_output_set
=
1
call
get_command_argument
(
i
+
1
,
filename_out
)
is_output_set
=
1
end
if
if
(
trim
(
arg
)
==
trim
(
arg_key_nmax
))
then
if
(
i
==
num_args
)
then
...
...
@@ -251,33 +252,28 @@ program sfx_main
if
(
dataset_id
==
dataset_mosaic
)
then
filename_in_common
=
'data/MOSAiC_zh.txt'
filename_in
=
'data/MOSAiC.txt'
if
(
is_output_set
==
0
)
filename_out
=
'out_MOSAiC.txt'
else
if
(
dataset_id
==
dataset_irgason
)
then
filename_in_common
=
'data/IRGASON_zh.txt'
filename_in
=
'data/Irgason1.txt'
if
(
is_output_set
==
0
)
filename_out
=
'out_IRGASON1.txt'
else
if
(
dataset_id
==
dataset_sheba
)
then
filename_in_common
=
'data/Sheba1_zh.txt'
filename_in
=
'data/Sheba1.txt'
if
(
is_output_set
==
0
)
filename_out
=
'out_Sheba.txt'
else
if
(
dataset_id
==
dataset_lake
)
then
filename_in_common
=
'data/Kuivajarvi_zh.txt'
filename_in
=
'data/Kuivajarvi.txt'
if
(
is_output_set
==
0
)
filename_out
=
'out_Kuivajarvi.txt'
else
if
(
dataset_id
==
dataset_papa
)
then
filename_in_common
=
'data/Papa_zh.txt'
filename_in
=
'data/Papa.txt'
if
(
is_output_set
==
0
)
filename_out
=
'out_Papa.txt'
else
if
(
dataset_id
==
dataset_toga
)
then
filename_in_common
=
'data/Toga_zh.txt'
filename_in
=
'data/Toga.txt'
if
(
is_output_set
==
0
)
filename_out
=
'out_Toga.txt'
else
if
(
dataset_id
==
dataset_user
)
then
! ---> skipping
else
write
(
*
,
*
)
' FAILURE! > unknown dataset id: '
,
dataset_id
stop
end
if
if
(
is_output_set
==
0
)
filename_out
=
'output-'
//
trim
(
dataset_name
)
//
'.txt'
write
(
*
,
*
)
' Running SFX model'
write
(
*
,
*
)
' model = '
,
trim
(
model_name
)
...
...
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