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
aee3987f
Commit
aee3987f
authored
6 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 03/01/2017: use LFI_INT for lfiz/unlfiz calls to LFI
(cherry picked from commit aa1fdae51201b3863955ce5a37ba9fe6deb81e86)
parent
a04af203
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/lfiz/src/lfiz.f90
+7
-5
7 additions, 5 deletions
LIBTOOLS/tools/lfiz/src/lfiz.f90
LIBTOOLS/tools/lfiz/src/unlfiz.f90
+9
-7
9 additions, 7 deletions
LIBTOOLS/tools/lfiz/src/unlfiz.f90
with
16 additions
and
12 deletions
LIBTOOLS/tools/lfiz/src/lfiz.f90
+
7
−
5
View file @
aee3987f
...
...
@@ -14,6 +14,8 @@ INTEGER :: arglen
INTEGER
::
inarg
CHARACTER
(
LEN
=
50
)
::
yexe
LOGICAL
(
KIND
=
LFI_INT
),
PARAMETER
::
GTRUE
=
.TRUE.
LOGICAL
(
KIND
=
LFI_INT
),
PARAMETER
::
GFALSE
=
.FALSE.
INTEGER
,
PARAMETER
::
FM_FIELD_SIZE
=
16
INTEGER
(
KIND
=
LFI_INT
),
PARAMETER
::
ISRCLU
=
11
...
...
@@ -101,8 +103,8 @@ IDIMY = 0
IDIMZ
=
0
GUSEDIM
=
.FALSE.
CALL
LFIOUV
(
IRESP
,
ISRCLU
,
.
TRUE
.
,
filename
,
'OLD'
,
.
FALSE
.
&
&
,
.
FALSE
.
,
iverb
,
inap
,
inaf
)
CALL
LFIOUV
(
IRESP
,
ISRCLU
,
G
TRUE
,
filename
,
'OLD'
,
G
FALSE
&
&
,
G
FALSE
,
iverb
,
inap
,
inaf
)
CALL
FMREADLFIN1
(
ISRCLU
,
'LFI_COMPRESSED'
,
LFICOMP
,
iresp
)
IF
(
iresp
==
0
)
THEN
...
...
@@ -149,8 +151,8 @@ END IF
PRINT
*
,
'compressed file : '
,
DESTFNAME
CALL
LFIOUV
(
IRESP
,
IDESTLU
,
.
TRUE
.
,
DESTFNAME
,
'NEW'
&
&
,
.
FALSE
.
,
.
FALSE
.
,
iverb
,
inaf
+1
,
inafdest
)
CALL
LFIOUV
(
IRESP
,
IDESTLU
,
G
TRUE
,
DESTFNAME
,
'NEW'
&
&
,
G
FALSE
,
G
FALSE
,
iverb
,
inaf
+1
,
inafdest
)
CALL
LFIPOS
(
IRESP
,
ISRCLU
)
ALLOCATE
(
yrecfm
(
inaf
))
...
...
@@ -158,7 +160,7 @@ ALLOCATE(ileng(inaf))
yrecfm
(:)
=
''
sizemax
=
0
DO
ji
=
1
,
inaf
CALL
LFICAS
(
IRESP
,
ISRCLU
,
yrecfm
(
ji
),
ileng
(
ji
),
ipos
,
.
TRUE
.
)
CALL
LFICAS
(
IRESP
,
ISRCLU
,
yrecfm
(
ji
),
ileng
(
ji
),
ipos
,
G
TRUE
)
IF
(
ileng
(
ji
)
>
sizemax
)
sizemax
=
ileng
(
ji
)
END
DO
PRINT
*
,
' Nombre total d
''
articles dans fichier source :'
,
inaf
...
...
This diff is collapsed.
Click to expand it.
LIBTOOLS/tools/lfiz/src/unlfiz.f90
+
9
−
7
View file @
aee3987f
...
...
@@ -14,6 +14,8 @@ INTEGER :: arglen
INTEGER
::
inarg
CHARACTER
(
LEN
=
50
)
::
yexe
LOGICAL
(
KIND
=
LFI_INT
),
PARAMETER
::
GTRUE
=
.TRUE.
LOGICAL
(
KIND
=
LFI_INT
),
PARAMETER
::
GFALSE
=
.FALSE.
INTEGER
,
PARAMETER
::
FM_FIELD_SIZE
=
16
INTEGER
(
KIND
=
LFI_INT
),
PARAMETER
::
ISRCLU
=
11
...
...
@@ -27,7 +29,7 @@ CHARACTER(LEN=128) :: filename,DESTFNAME
INTEGER
::
JI
,
JJ
INTEGER
(
KIND
=
LFI_INT
)
::
IRESP
CHARACTER
(
LEN
=
FM_FIELD_SIZE
),
DIMENSION
(:),
ALLOCATABLE
::
yrecfm
INTEGER
(
KIND
=
LFI_INT
),
DIMENSION
(:),
ALLOCATABLE
::
ileng
INTEGER
(
KIND
=
LFI_INT
),
DIMENSION
(:),
ALLOCATABLE
::
ileng
INTEGER
(
KIND
=
8
),
DIMENSION
(:),
ALLOCATABLE
::
iwork
,
iworknew
INTEGER
(
KIND
=
LFI_INT
)
::
ilengs
...
...
@@ -43,7 +45,7 @@ INTEGER :: CPT
INTEGER
::
LFICOMP
INTEGER
::
searchndx
INTEGER
::
ITYPCOD
INTEGER
::
ITOTAL
,
ITOTALMAX
INTEGER
(
KIND
=
LFI_INT
)
::
ITOTAL
,
ITOTALMAX
!OLD: INARG = IARGC()
INARG
=
COMMAND_ARGUMENT_COUNT
()
...
...
@@ -102,8 +104,8 @@ IDIMY = 0
IDIMZ
=
0
GUSEDIM
=
.FALSE.
CALL
LFIOUV
(
IRESP
,
ISRCLU
,
.
TRUE
.
,
filename
,
'OLD'
,
.
FALSE
.
&
&
,
.
FALSE
.
,
iverb
,
inap
,
inaf
)
CALL
LFIOUV
(
IRESP
,
ISRCLU
,
G
TRUE
,
filename
,
'OLD'
,
G
FALSE
&
&
,
G
FALSE
,
iverb
,
inap
,
inaf
)
CALL
FMREADLFIN1
(
ISRCLU
,
'LFI_COMPRESSED'
,
LFICOMP
,
iresp
)
IF
(
iresp
/
=
0
.OR.
LFICOMP
/
=
1
)
THEN
...
...
@@ -113,8 +115,8 @@ IF (iresp /= 0 .OR. LFICOMP /= 1) THEN
END
IF
PRINT
*
,
'Uncompressed (but 32 bits REAL precision) file : '
,
DESTFNAME
CALL
LFIOUV
(
IRESP
,
IDESTLU
,
.
TRUE
.
,
DESTFNAME
,
'NEW'
&
&
,
.
FALSE
.
,
.
FALSE
.
,
iverb
,
inaf
,
inafdest
)
CALL
LFIOUV
(
IRESP
,
IDESTLU
,
G
TRUE
,
DESTFNAME
,
'NEW'
&
&
,
G
FALSE
,
G
FALSE
,
iverb
,
inaf
,
inafdest
)
CALL
LFIPOS
(
IRESP
,
ISRCLU
)
ALLOCATE
(
yrecfm
(
inaf
))
...
...
@@ -122,7 +124,7 @@ ALLOCATE(ileng(inaf))
yrecfm
(:)
=
''
sizemax
=
0
DO
ji
=
1
,
inaf
CALL
LFICAS
(
IRESP
,
ISRCLU
,
yrecfm
(
ji
),
ileng
(
ji
),
ipos
,
.
TRUE
.
)
CALL
LFICAS
(
IRESP
,
ISRCLU
,
yrecfm
(
ji
),
ileng
(
ji
),
ipos
,
G
TRUE
)
IF
(
ileng
(
ji
)
>
sizemax
)
sizemax
=
ileng
(
ji
)
END
DO
PRINT
*
,
' Nombre total d
''
articles dans fichier source :'
,
inaf
...
...
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