Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
6cf09f89
Commit
6cf09f89
authored
8 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 24/11/2016: lfi2cdf: bug correction: correct name for output file
parent
1789949e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LIBTOOLS/tools/lfi2cdf/src/mode_options.f90
+5
-22
5 additions, 22 deletions
LIBTOOLS/tools/lfi2cdf/src/mode_options.f90
LIBTOOLS/tools/lfi2cdf/src/mode_util.f90
+1
-1
1 addition, 1 deletion
LIBTOOLS/tools/lfi2cdf/src/mode_util.f90
with
6 additions
and
23 deletions
LIBTOOLS/tools/lfi2cdf/src/mode_options.f90
+
5
−
22
View file @
6cf09f89
...
@@ -31,7 +31,7 @@ subroutine read_commandline(options,hinfile,houtfile,runmode)
...
@@ -31,7 +31,7 @@ subroutine read_commandline(options,hinfile,houtfile,runmode)
character
(
len
=
:),
allocatable
,
intent
(
out
)
::
houtfile
character
(
len
=
:),
allocatable
,
intent
(
out
)
::
houtfile
integer
,
intent
(
out
)
::
runmode
integer
,
intent
(
out
)
::
runmode
integer
::
idx
,
ji
,
nbargs
,
status
,
sz
integer
::
idx
,
nbargs
,
status
,
sz
logical
::
finished
logical
::
finished
character
(
len
=
:),
allocatable
::
command
,
fullcommand
character
(
len
=
:),
allocatable
::
command
,
fullcommand
...
@@ -80,30 +80,13 @@ subroutine read_commandline(options,hinfile,houtfile,runmode)
...
@@ -80,30 +80,13 @@ subroutine read_commandline(options,hinfile,houtfile,runmode)
call
check_options
(
options
,
hinfile
,
runmode
)
call
check_options
(
options
,
hinfile
,
runmode
)
houtfile
=
options
(
OPTOUTPUT
)
%
cvalue
!Remove level in the filename if merging LFI splitted files
!Remove level in the filename if merging LFI splitted files
and output name not set by option
if
(
.NOT.
options
(
OPTOUTPUT
)
%
set
)
then
if
(
.NOT.
options
(
OPTOUTPUT
)
%
set
)
then
if
(
options
(
OPTMERGE
)
%
set
.AND.
.NOT.
options
(
OPTSPLIT
)
%
set
)
then
if
(
options
(
OPTMERGE
)
%
set
)
then
houtfile
=
h
out
file
(
1
:
len
(
h
outfile
)
-9
)//
houtfile
(
len
(
hout
file
)
-
3
:
)
houtfile
=
h
in
file
(
1
:
len
(
h
in
file
)
-
9
)
end
if
end
if
if
(
.NOT.
options
(
OPTMERGE
)
%
set
.AND.
options
(
OPTSPLIT
)
%
set
)
then
if
(
options
(
OPTCDF4
)
%
set
)
then
ji
=
4
else
ji
=
3
end
if
houtfile
=
houtfile
(
1
:
len
(
houtfile
)
-
ji
)
end
if
if
(
options
(
OPTMERGE
)
%
set
.AND.
options
(
OPTSPLIT
)
%
set
)
then
if
(
options
(
OPTCDF4
)
%
set
)
then
ji
=
9
else
ji
=
8
end
if
houtfile
=
houtfile
(
1
:
len
(
houtfile
)
-
ji
)
end
if
else
houtfile
=
options
(
OPTOUTPUT
)
%
cvalue
end
if
end
if
end
subroutine
read_commandline
end
subroutine
read_commandline
...
...
This diff is collapsed.
Click to expand it.
LIBTOOLS/tools/lfi2cdf/src/mode_util.f90
+
1
−
1
View file @
6cf09f89
...
@@ -1268,7 +1268,7 @@ END DO
...
@@ -1268,7 +1268,7 @@ END DO
outfiles
%
files
(
idx
)
%
format
=
LFI_FORMAT
outfiles
%
files
(
idx
)
%
format
=
LFI_FORMAT
outfiles
%
files
(
idx
)
%
status
=
WRITING
outfiles
%
files
(
idx
)
%
status
=
WRITING
ilu
=
outfiles
%
files
(
idx
)
%
lun_id
ilu
=
outfiles
%
files
(
idx
)
%
lun_id
CALL
LFIOUV
(
iresp
,
ilu
,
ltrue
,
houtfile
,
'NEW'
,
lfalse
,
lfalse
,
iverb
,
inap
,
inaf
)
CALL
LFIOUV
(
iresp
,
ilu
,
ltrue
,
TRIM
(
houtfile
)//
'.lfi'
,
'NEW'
,
lfalse
,
lfalse
,
iverb
,
inap
,
inaf
)
outfiles
%
files
(
idx
)
%
opened
=
.TRUE.
outfiles
%
files
(
idx
)
%
opened
=
.TRUE.
END
IF
END
IF
...
...
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