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
d7eb19c4
Commit
d7eb19c4
authored
4 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 17/03/2021: budgets: improve error detection in Budget_source_id_find
parent
30811b80
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
src/MNH/budget.f90
+16
-1
16 additions, 1 deletion
src/MNH/budget.f90
with
16 additions
and
1 deletion
src/MNH/budget.f90
+
16
−
1
View file @
d7eb19c4
...
...
@@ -292,7 +292,22 @@ subroutine Budget_source_id_find( tpbudget, hsource, kid )
if
(
iid
>
0
)
then
call
Print_msg
(
NVERB_DEBUG
,
'BUD'
,
'Budget_source_id_find'
,
trim
(
tpbudget
%
cname
)//
':'
//
trim
(
hsource
)//
' found'
)
else
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Budget_source_id_find'
,
trim
(
tpbudget
%
cname
)//
':'
//
trim
(
hsource
)//
' not found'
)
!Search also in the non-available source term list
do
ji
=
tpbudget
%
nsources
+
1
,
tpbudget
%
nsourcesmax
if
(
trim
(
hsource
)
==
trim
(
tpbudget
%
tsources
(
ji
)
%
cmnhname
)
)
then
iid
=
ji
exit
end
if
end
do
if
(
iid
==
0
)
then
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Budget_source_id_find'
,
trim
(
tpbudget
%
cname
)//
':'
//
trim
(
hsource
)//
' not found'
)
else
cmnhmsg
(
1
)
=
Trim
(
tpbudget
%
cname
)
//
':'
//
Trim
(
hsource
)
//
' found'
cmnhmsg
(
2
)
=
'in non-available source term list.'
cmnhmsg
(
3
)
=
'Check availability condition in Ini_budget.'
call
Print_msg
(
NVERB_ERROR
,
'BUD'
,
'Budget_source_id_find'
)
end
if
end
if
kid
=
iid
...
...
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