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
Méso-NH
Méso-NH code
Commits
7424a26b
Commit
7424a26b
authored
5 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 28/01/2020: budgets: rename write_budget internal subroutines
parent
92a2e8ff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MNH/write_budget.f90
+42
-35
42 additions, 35 deletions
src/MNH/write_budget.f90
with
42 additions
and
35 deletions
src/MNH/write_budget.f90
+
42
−
35
View file @
7424a26b
...
@@ -130,6 +130,7 @@ subroutine Write_budget( tpdiafile, tpdtcur, ptstep, ksv )
...
@@ -130,6 +130,7 @@ subroutine Write_budget( tpdiafile, tpdtcur, ptstep, ksv )
use
mode_datetime
,
only
:
datetime_distance
use
mode_datetime
,
only
:
datetime_distance
use
mode_io_field_write
,
only
:
IO_Field_write
use
mode_io_field_write
,
only
:
IO_Field_write
use
mode_menu_diachro
,
only
:
Menu_diachro
use
mode_menu_diachro
,
only
:
Menu_diachro
use
mode_msg
use
mode_time
,
only
:
tdtexp
use
mode_time
,
only
:
tdtexp
implicit
none
implicit
none
...
@@ -272,90 +273,90 @@ subroutine Write_budget( tpdiafile, tpdtcur, ptstep, ksv )
...
@@ -272,90 +273,90 @@ subroutine Write_budget( tpdiafile, tpdtcur, ptstep, ksv )
!* XBURHODJU and RU budgets
!* XBURHODJU and RU budgets
!
!
IF
(
LBU_RU
)
THEN
IF
(
LBU_RU
)
THEN
call
Store_one_budget_rho
_new
(
tpdiafile
,
tzdates
,
tbudgets
(
NBUDGET_U
),
NBUDGET_U
,
gnocompress
,
zrhodjn
)
call
Store_one_budget_rho
(
tpdiafile
,
tzdates
,
tbudgets
(
NBUDGET_U
),
NBUDGET_U
,
gnocompress
,
zrhodjn
)
call
Store_one_budget
_new
(
tpdiafile
,
tzdates
,
tbudgets
(
NBUDGET_U
),
zrhodjn
,
NBUDGET_U
,
gnocompress
,
ptstep
)
call
Store_one_budget
(
tpdiafile
,
tzdates
,
tbudgets
(
NBUDGET_U
),
zrhodjn
,
NBUDGET_U
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* XBURHODJV and RV budgets
!* XBURHODJV and RV budgets
!
!
IF
(
LBU_RV
)
THEN
IF
(
LBU_RV
)
THEN
call
Store_one_budget_rho
(
tpdiafile
,
tzdates
,
xburhodjv
,
NBUDGET_V
,
gnocompress
,
zrhodjn
)
call
Store_one_budget_rho
_old
(
tpdiafile
,
tzdates
,
xburhodjv
,
NBUDGET_V
,
gnocompress
,
zrhodjn
)
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburv
,
zrhodjn
,
NBUDGET_V
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburv
,
zrhodjn
,
NBUDGET_V
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* XBURHODJW and RW budgets
!* XBURHODJW and RW budgets
!
!
IF
(
LBU_RW
)
THEN
IF
(
LBU_RW
)
THEN
call
Store_one_budget_rho
(
tpdiafile
,
tzdates
,
xburhodjw
,
NBUDGET_W
,
gnocompress
,
zrhodjn
)
call
Store_one_budget_rho
_old
(
tpdiafile
,
tzdates
,
xburhodjw
,
NBUDGET_W
,
gnocompress
,
zrhodjn
)
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburw
,
zrhodjn
,
NBUDGET_W
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburw
,
zrhodjn
,
NBUDGET_W
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* XBURHODJ storage for Scalars
!* XBURHODJ storage for Scalars
!
!
IF
(
LBU_RTH
.OR.
LBU_RTKE
.OR.
LBU_RRV
.OR.
LBU_RRC
.OR.
LBU_RRR
.OR.
&
IF
(
LBU_RTH
.OR.
LBU_RTKE
.OR.
LBU_RRV
.OR.
LBU_RRC
.OR.
LBU_RRR
.OR.
&
LBU_RRI
.OR.
LBU_RRS
.OR.
LBU_RRG
.OR.
LBU_RRH
.OR.
LBU_RSV
)
THEN
LBU_RRI
.OR.
LBU_RRS
.OR.
LBU_RRG
.OR.
LBU_RRH
.OR.
LBU_RSV
)
THEN
call
Store_one_budget_rho
(
tpdiafile
,
tzdates
,
xburhodj
,
NBUDGET_RHO
,
gnocompress
,
zrhodjn
)
call
Store_one_budget_rho
_old
(
tpdiafile
,
tzdates
,
xburhodj
,
NBUDGET_RHO
,
gnocompress
,
zrhodjn
)
ENDIF
ENDIF
!
!
!* RTH budget
!* RTH budget
!
!
IF
(
LBU_RTH
)
THEN
IF
(
LBU_RTH
)
THEN
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburth
,
zrhodjn
,
NBUDGET_TH
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburth
,
zrhodjn
,
NBUDGET_TH
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* RTKE budget
!* RTKE budget
!
!
IF
(
LBU_RTKE
)
THEN
IF
(
LBU_RTKE
)
THEN
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburtke
,
zrhodjn
,
NBUDGET_TKE
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburtke
,
zrhodjn
,
NBUDGET_TKE
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* RRV budget
!* RRV budget
!
!
IF
(
LBU_RRV
)
THEN
IF
(
LBU_RRV
)
THEN
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburrv
,
zrhodjn
,
NBUDGET_RV
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburrv
,
zrhodjn
,
NBUDGET_RV
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* RRC budget
!* RRC budget
!
!
IF
(
LBU_RRC
)
THEN
IF
(
LBU_RRC
)
THEN
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburrc
,
zrhodjn
,
NBUDGET_RC
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburrc
,
zrhodjn
,
NBUDGET_RC
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* RRR budget
!* RRR budget
!
!
IF
(
LBU_RRR
)
THEN
IF
(
LBU_RRR
)
THEN
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburrr
,
zrhodjn
,
NBUDGET_RR
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburrr
,
zrhodjn
,
NBUDGET_RR
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* RRI budget
!* RRI budget
!
!
IF
(
LBU_RRI
)
THEN
IF
(
LBU_RRI
)
THEN
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburri
,
zrhodjn
,
NBUDGET_RI
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburri
,
zrhodjn
,
NBUDGET_RI
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* RRS budget
!* RRS budget
!
!
IF
(
LBU_RRS
)
THEN
IF
(
LBU_RRS
)
THEN
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburrs
,
zrhodjn
,
NBUDGET_RS
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburrs
,
zrhodjn
,
NBUDGET_RS
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* RRG budget
!* RRG budget
!
!
IF
(
LBU_RRG
)
THEN
IF
(
LBU_RRG
)
THEN
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburrg
,
zrhodjn
,
NBUDGET_RG
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburrg
,
zrhodjn
,
NBUDGET_RG
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* RRH budget
!* RRH budget
!
!
IF
(
LBU_RRH
)
THEN
IF
(
LBU_RRH
)
THEN
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xburrh
,
zrhodjn
,
NBUDGET_RH
,
gnocompress
,
ptstep
)
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xburrh
,
zrhodjn
,
NBUDGET_RH
,
gnocompress
,
ptstep
)
END
IF
END
IF
!
!
!* RSV budgets
!* RSV budgets
!
!
IF
(
LBU_RSV
)
THEN
IF
(
LBU_RSV
)
THEN
DO
JSV
=
1
,
KSV
DO
JSV
=
1
,
KSV
call
Store_one_budget
(
tpdiafile
,
tzdates
,
xbursv
(:,
:,
:,
:,
jsv
),
zrhodjn
,
&
call
Store_one_budget
_old
(
tpdiafile
,
tzdates
,
xbursv
(:,
:,
:,
:,
jsv
),
zrhodjn
,
&
NBUDGET_SV1
+
jsv
-
1
,
gnocompress
,
ptstep
)
NBUDGET_SV1
+
jsv
-
1
,
gnocompress
,
ptstep
)
END
DO
END
DO
END
IF
END
IF
...
@@ -364,7 +365,7 @@ subroutine Write_budget( tpdiafile, tpdtcur, ptstep, ksv )
...
@@ -364,7 +365,7 @@ subroutine Write_budget( tpdiafile, tpdtcur, ptstep, ksv )
end
subroutine
Write_budget
end
subroutine
Write_budget
subroutine
Store_one_budget_rho
(
tpdiafile
,
tpdates
,
pburhodj
,
kp
,
knocompress
,
prhodjn
)
subroutine
Store_one_budget_rho
_old
(
tpdiafile
,
tpdates
,
pburhodj
,
kp
,
knocompress
,
prhodjn
)
use
modd_budget
,
only
:
cbutype
,
&
use
modd_budget
,
only
:
cbutype
,
&
lbu_icp
,
lbu_jcp
,
lbu_kcp
,
&
lbu_icp
,
lbu_jcp
,
lbu_kcp
,
&
nbuil
,
nbuih
,
nbujl
,
nbujh
,
nbukl
,
nbukh
,
&
nbuil
,
nbuih
,
nbujl
,
nbujh
,
nbukl
,
nbukh
,
&
...
@@ -376,6 +377,7 @@ subroutine Store_one_budget_rho( tpdiafile, tpdates, pburhodj, kp, knocompress,
...
@@ -376,6 +377,7 @@ subroutine Store_one_budget_rho( tpdiafile, tpdates, pburhodj, kp, knocompress,
use
modd_parameters
,
only
:
XNEGUNDEF
use
modd_parameters
,
only
:
XNEGUNDEF
use
modd_type_date
,
only
:
date_time
use
modd_type_date
,
only
:
date_time
use
mode_msg
use
mode_write_diachro
,
only
:
Write_diachro
use
mode_write_diachro
,
only
:
Write_diachro
use
modi_end_cart_compress
,
only
:
End_cart_compress
use
modi_end_cart_compress
,
only
:
End_cart_compress
...
@@ -419,7 +421,7 @@ subroutine Store_one_budget_rho( tpdiafile, tpdates, pburhodj, kp, knocompress,
...
@@ -419,7 +421,7 @@ subroutine Store_one_budget_rho( tpdiafile, tpdates, pburhodj, kp, knocompress,
end
where
end
where
case
default
case
default
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget_rho'
,
'unknown CBUTYPE'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget_rho
_old
'
,
'unknown CBUTYPE'
)
end
select
end
select
allocate
(
ybucomment
(
1
)
)
allocate
(
ybucomment
(
1
)
)
...
@@ -457,7 +459,7 @@ subroutine Store_one_budget_rho( tpdiafile, tpdates, pburhodj, kp, knocompress,
...
@@ -457,7 +459,7 @@ subroutine Store_one_budget_rho( tpdiafile, tpdates, pburhodj, kp, knocompress,
write
(
ygroup_name
,
fmt
=
"('RJZ__',I4.4)"
)
nbutshift
write
(
ygroup_name
,
fmt
=
"('RJZ__',I4.4)"
)
nbutshift
case
default
case
default
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget_rho'
,
'unknown budget type'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget_rho
_old
'
,
'unknown budget type'
)
end
select
end
select
call
Write_diachro
(
tpdiafile
,
tluout
,
ygroup_name
,
ybutype
,
iworkgrid
,
&
call
Write_diachro
(
tpdiafile
,
tluout
,
ygroup_name
,
ybutype
,
iworkgrid
,
&
...
@@ -467,10 +469,10 @@ subroutine Store_one_budget_rho( tpdiafile, tpdates, pburhodj, kp, knocompress,
...
@@ -467,10 +469,10 @@ subroutine Store_one_budget_rho( tpdiafile, tpdates, pburhodj, kp, knocompress,
kil
=
nbuil
,
kih
=
nbuih
,
kjl
=
nbujl
,
kjh
=
nbujh
,
kkl
=
nbukl
,
kkh
=
nbukh
)
kil
=
nbuil
,
kih
=
nbuih
,
kjl
=
nbujl
,
kjh
=
nbujh
,
kkl
=
nbukl
,
kkh
=
nbukh
)
deallocate
(
ybucomment
,
yworkunit
,
yworkcomment
,
iworkgrid
)
deallocate
(
ybucomment
,
yworkunit
,
yworkcomment
,
iworkgrid
)
end
subroutine
Store_one_budget_rho
end
subroutine
Store_one_budget_rho
_old
subroutine
Store_one_budget_rho
_new
(
tpdiafile
,
tpdates
,
tpbudget
,
kp
,
knocompress
,
prhodjn
)
subroutine
Store_one_budget_rho
(
tpdiafile
,
tpdates
,
tpbudget
,
kp
,
knocompress
,
prhodjn
)
use
modd_budget
,
only
:
cbutype
,
&
use
modd_budget
,
only
:
cbutype
,
&
lbu_icp
,
lbu_jcp
,
lbu_kcp
,
&
lbu_icp
,
lbu_jcp
,
lbu_kcp
,
&
nbuil
,
nbuih
,
nbujl
,
nbujh
,
nbukl
,
nbukh
,
&
nbuil
,
nbuih
,
nbujl
,
nbujh
,
nbukl
,
nbukh
,
&
...
@@ -483,6 +485,7 @@ subroutine Store_one_budget_rho_new( tpdiafile, tpdates, tpbudget, kp, knocompre
...
@@ -483,6 +485,7 @@ subroutine Store_one_budget_rho_new( tpdiafile, tpdates, tpbudget, kp, knocompre
use
modd_parameters
,
only
:
XNEGUNDEF
use
modd_parameters
,
only
:
XNEGUNDEF
use
modd_type_date
,
only
:
date_time
use
modd_type_date
,
only
:
date_time
use
mode_msg
use
mode_write_diachro
,
only
:
Write_diachro
use
mode_write_diachro
,
only
:
Write_diachro
use
modi_end_cart_compress
,
only
:
End_cart_compress
use
modi_end_cart_compress
,
only
:
End_cart_compress
...
@@ -526,7 +529,7 @@ subroutine Store_one_budget_rho_new( tpdiafile, tpdates, tpbudget, kp, knocompre
...
@@ -526,7 +529,7 @@ subroutine Store_one_budget_rho_new( tpdiafile, tpdates, tpbudget, kp, knocompre
end
where
end
where
case
default
case
default
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget_rho'
,
'unknown CBUTYPE'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget_rho
_old
'
,
'unknown CBUTYPE'
)
end
select
end
select
allocate
(
ybucomment
(
1
)
)
allocate
(
ybucomment
(
1
)
)
...
@@ -553,7 +556,7 @@ subroutine Store_one_budget_rho_new( tpdiafile, tpdates, tpbudget, kp, knocompre
...
@@ -553,7 +556,7 @@ subroutine Store_one_budget_rho_new( tpdiafile, tpdates, tpbudget, kp, knocompre
write
(
ygroup_name
,
fmt
=
"('RJZ__',I4.4)"
)
nbutshift
write
(
ygroup_name
,
fmt
=
"('RJZ__',I4.4)"
)
nbutshift
case
default
case
default
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget_rho'
,
'unknown budget type'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget_rho
_old
'
,
'unknown budget type'
)
end
select
end
select
call
Write_diachro
(
tpdiafile
,
tluout
,
ygroup_name
,
ybutype
,
iworkgrid
,
&
call
Write_diachro
(
tpdiafile
,
tluout
,
ygroup_name
,
ybutype
,
iworkgrid
,
&
...
@@ -563,10 +566,10 @@ subroutine Store_one_budget_rho_new( tpdiafile, tpdates, tpbudget, kp, knocompre
...
@@ -563,10 +566,10 @@ subroutine Store_one_budget_rho_new( tpdiafile, tpdates, tpbudget, kp, knocompre
kil
=
nbuil
,
kih
=
nbuih
,
kjl
=
nbujl
,
kjh
=
nbujh
,
kkl
=
nbukl
,
kkh
=
nbukh
)
kil
=
nbuil
,
kih
=
nbuih
,
kjl
=
nbujl
,
kjh
=
nbujh
,
kkl
=
nbukl
,
kkh
=
nbukh
)
deallocate
(
ybucomment
,
yworkunit
,
yworkcomment
,
iworkgrid
)
deallocate
(
ybucomment
,
yworkunit
,
yworkcomment
,
iworkgrid
)
end
subroutine
Store_one_budget_rho
_new
end
subroutine
Store_one_budget_rho
subroutine
Store_one_budget
(
tpdiafile
,
tpdates
,
pbudarray
,
prhodjn
,
kp
,
knocompress
,
ptstep
)
subroutine
Store_one_budget
_old
(
tpdiafile
,
tpdates
,
pbudarray
,
prhodjn
,
kp
,
knocompress
,
ptstep
)
use
modd_budget
,
only
:
cbucomment
,
cbutype
,
&
use
modd_budget
,
only
:
cbucomment
,
cbutype
,
&
lbu_icp
,
lbu_jcp
,
lbu_kcp
,
&
lbu_icp
,
lbu_jcp
,
lbu_kcp
,
&
nbuil
,
nbuih
,
nbujl
,
nbujh
,
nbukl
,
nbukh
,
&
nbuil
,
nbuih
,
nbujl
,
nbujh
,
nbukl
,
nbukh
,
&
...
@@ -578,6 +581,7 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
...
@@ -578,6 +581,7 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
use
modd_lunit_n
,
only
:
tluout
use
modd_lunit_n
,
only
:
tluout
use
modd_type_date
,
only
:
date_time
use
modd_type_date
,
only
:
date_time
use
mode_msg
use
mode_write_diachro
,
only
:
Write_diachro
use
mode_write_diachro
,
only
:
Write_diachro
use
modi_end_cart_compress
,
only
:
End_cart_compress
use
modi_end_cart_compress
,
only
:
End_cart_compress
...
@@ -604,8 +608,9 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
...
@@ -604,8 +608,9 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
real
,
dimension
(:),
allocatable
::
zconvert
! unit conversion coefficient
real
,
dimension
(:),
allocatable
::
zconvert
! unit conversion coefficient
real
,
dimension
(:,:,:,:,:,:),
allocatable
::
zworkt
real
,
dimension
(:,:,:,:,:,:),
allocatable
::
zworkt
if
(
.not.
allocated
(
prhodjn
)
)
then
if
(
.not.
allocated
(
prhodjn
)
)
then
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget'
,
'prhodjn not allocated'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget
_old
'
,
'prhodjn not allocated'
)
return
return
end
if
end
if
...
@@ -640,7 +645,7 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
...
@@ -640,7 +645,7 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
end
do
end
do
case
default
case
default
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget'
,
'unknown CBUTYPE'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget
_old
'
,
'unknown CBUTYPE'
)
end
select
end
select
deallocate
(
zconvert
)
deallocate
(
zconvert
)
...
@@ -733,7 +738,7 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
...
@@ -733,7 +738,7 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
write
(
ygroup_name
,
fmt
=
"('SV',I3.3,I4.4)"
)
jsv
,
nbutshift
write
(
ygroup_name
,
fmt
=
"('SV',I3.3,I4.4)"
)
jsv
,
nbutshift
case
default
case
default
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget'
,
'unknown budget type'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget
_old
'
,
'unknown budget type'
)
end
select
end
select
CALL
Write_diachro
(
tpdiafile
,
tluout
,
ygroup_name
,
ybutype
,
iworkgrid
,
&
CALL
Write_diachro
(
tpdiafile
,
tluout
,
ygroup_name
,
ybutype
,
iworkgrid
,
&
...
@@ -744,10 +749,10 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
...
@@ -744,10 +749,10 @@ subroutine Store_one_budget( tpdiafile, tpdates, pbudarray, prhodjn, kp, knocomp
deallocate
(
zworkt
,
yworkunit
,
yworkcomment
,
iworkgrid
)
deallocate
(
zworkt
,
yworkunit
,
yworkcomment
,
iworkgrid
)
end
subroutine
Store_one_budget
end
subroutine
Store_one_budget
_old
subroutine
Store_one_budget
_new
(
tpdiafile
,
tpdates
,
tpbudget
,
prhodjn
,
kp
,
knocompress
,
ptstep
)
subroutine
Store_one_budget
(
tpdiafile
,
tpdates
,
tpbudget
,
prhodjn
,
kp
,
knocompress
,
ptstep
)
use
modd_budget
,
only
:
cbutype
,
&
use
modd_budget
,
only
:
cbutype
,
&
lbu_icp
,
lbu_jcp
,
lbu_kcp
,
&
lbu_icp
,
lbu_jcp
,
lbu_kcp
,
&
nbuil
,
nbuih
,
nbujl
,
nbujh
,
nbukl
,
nbukh
,
&
nbuil
,
nbuih
,
nbujl
,
nbujh
,
nbukl
,
nbukh
,
&
...
@@ -761,6 +766,7 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
...
@@ -761,6 +766,7 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
use
modd_parameters
,
only
:
NBUNAMELGTMAX
use
modd_parameters
,
only
:
NBUNAMELGTMAX
use
modd_type_date
,
only
:
date_time
use
modd_type_date
,
only
:
date_time
use
mode_msg
use
mode_write_diachro
,
only
:
Write_diachro
use
mode_write_diachro
,
only
:
Write_diachro
use
modi_end_cart_compress
,
only
:
End_cart_compress
use
modi_end_cart_compress
,
only
:
End_cart_compress
...
@@ -789,8 +795,9 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
...
@@ -789,8 +795,9 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
real
,
dimension
(:),
allocatable
::
zconvert
! unit conversion coefficient
real
,
dimension
(:),
allocatable
::
zconvert
! unit conversion coefficient
real
,
dimension
(:,:,:,:,:,:),
allocatable
::
zworkt
real
,
dimension
(:,:,:,:,:,:),
allocatable
::
zworkt
if
(
.not.
allocated
(
prhodjn
)
)
then
if
(
.not.
allocated
(
prhodjn
)
)
then
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget
_new
'
,
'prhodjn not allocated'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget'
,
'prhodjn not allocated'
)
return
return
end
if
end
if
...
@@ -834,7 +841,7 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
...
@@ -834,7 +841,7 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
end
do
end
do
case
default
case
default
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget
_new
'
,
'unknown CBUTYPE'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget'
,
'unknown CBUTYPE'
)
end
select
end
select
deallocate
(
zconvert
)
deallocate
(
zconvert
)
...
@@ -894,7 +901,7 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
...
@@ -894,7 +901,7 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
write
(
ygroup_name
,
fmt
=
"('SV',I3.3,I4.4)"
)
jsv
,
nbutshift
write
(
ygroup_name
,
fmt
=
"('SV',I3.3,I4.4)"
)
jsv
,
nbutshift
case
default
case
default
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget
_new
'
,
'unknown budget type'
)
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Store_one_budget'
,
'unknown budget type'
)
end
select
end
select
do
jproc
=
1
,
igroups
do
jproc
=
1
,
igroups
...
@@ -909,6 +916,6 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
...
@@ -909,6 +916,6 @@ subroutine Store_one_budget_new( tpdiafile, tpdates, tpbudget, prhodjn, kp, knoc
deallocate
(
zworkt
,
yworkunit
,
yworkcomment
,
iworkgrid
)
deallocate
(
zworkt
,
yworkunit
,
yworkcomment
,
iworkgrid
)
end
subroutine
Store_one_budget
_new
end
subroutine
Store_one_budget
end
module
mode_write_budget
end
module
mode_write_budget
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