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
d55bcc95
Commit
d55bcc95
authored
5 months ago
by
Evgeny Mortikov
Browse files
Options
Downloads
Patches
Plain Diff
configuration file setup
parent
ad58b9da
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
+9
-2
9 additions, 2 deletions
srcF/sfx_main.f90
with
9 additions
and
2 deletions
srcF/sfx_main.f90
+
9
−
2
View file @
d55bcc95
...
...
@@ -343,16 +343,23 @@ program sfx_main
write
(
*
,
*
)
' FAILURE! > unknown dataset [key]: '
,
trim
(
char_array2str
(
config_field
))
stop
end
if
!< save nmax if previously set
nmax
=
dataset
%
nmax
call
set_dataset
(
dataset
,
id
)
dataset
%
nmax
=
nmax
if
(
dataset
%
id
==
dataset_user
)
then
call
get_charf
(
"dataset.filename"
//
C_NULL_CHAR
,
config_field
)
dataset
%
filename
=
char_array2str
(
config_field
)
call
get_float
(
"dataset.h"
//
C_NULL_CHAR
,
dataset
%
h
)
call
get_float
(
"dataset.z0_m"
//
C_NULL_CHAR
,
dataset
%
z0_m
)
call
get_float
(
"dataset.z0_h"
//
C_NULL_CHAR
,
dataset
%
z0_h
)
end
if
call
is_varname
(
"dataset.filename"
//
C_NULL_CHAR
,
status
)
if
((
status
/
=
0
)
.or.
(
dataset
%
id
==
dataset_user
))
then
call
get_charf
(
"dataset.filename"
//
C_NULL_CHAR
,
config_field
)
dataset
%
filename
=
char_array2str
(
config_field
)
end
if
end
if
call
is_varname
(
"dataset.nmax"
//
C_NULL_CHAR
,
status
)
...
...
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