Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CHEASE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Contributor 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
SPC
CHEASE
Commits
564b7fc0
Commit
564b7fc0
authored
2 years ago
by
Thomas Hayward-Schneider
Browse files
Options
Downloads
Patches
Plain Diff
Allocate and set output_message when returning with error
parent
2a099242
Branches
bugfix/actor_output_message
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src-f90/chease_imas_vDD3_5.3PUAL3_3.8.f90
+4
-0
4 additions, 0 deletions
src-f90/chease_imas_vDD3_5.3PUAL3_3.8.f90
with
4 additions
and
0 deletions
src-f90/chease_imas_vDD3_5.3PUAL3_3.8.f90
+
4
−
0
View file @
564b7fc0
...
@@ -697,6 +697,8 @@ subroutine chease(equil_in_ids,equil_out_ids,param_input_ids,flag_status,output_
...
@@ -697,6 +697,8 @@ subroutine chease(equil_in_ids,equil_out_ids,param_input_ids,flag_status,output_
allocate
(
eqchease_out
(
index_out
)
%
codeparam
%
output_diag
(
1
))
allocate
(
eqchease_out
(
index_out
)
%
codeparam
%
output_diag
(
1
))
eqchease_out
(
index_out
)
%
codeparam
%
output_diag
(
1
)
=
'ERROR in chease_new.f90: Could not assign some code parameters.'
eqchease_out
(
index_out
)
%
codeparam
%
output_diag
(
1
)
=
'ERROR in chease_new.f90: Could not assign some code parameters.'
eqchease_out
(
index_out
)
%
codeparam
%
output_flag
=
-10
eqchease_out
(
index_out
)
%
codeparam
%
output_flag
=
-10
allocate
(
character
(
len
=
40
)::
output_message
)
output_message
=
"chease_new error: assigning params"
equil_out
=>
eqchease_out
equil_out
=>
eqchease_out
return
return
end
if
end
if
...
@@ -828,6 +830,8 @@ subroutine chease(equil_in_ids,equil_out_ids,param_input_ids,flag_status,output_
...
@@ -828,6 +830,8 @@ subroutine chease(equil_in_ids,equil_out_ids,param_input_ids,flag_status,output_
if
(
nverbose
.ge.
0
)
write
(
0
,
*
)
'for time: eqchease_out(index_out)%time= '
,
eqchease_out
(
index_out
)
%
time
if
(
nverbose
.ge.
0
)
write
(
0
,
*
)
'for time: eqchease_out(index_out)%time= '
,
eqchease_out
(
index_out
)
%
time
if
(
nverbose
.ge.
0
)
write
(
0
,
*
)
'there were problems in stepon, quit chease'
if
(
nverbose
.ge.
0
)
write
(
0
,
*
)
'there were problems in stepon, quit chease'
call
flush
(
0
)
call
flush
(
0
)
allocate
(
character
(
len
=
20
)::
output_message
)
output_message
=
"stepon error"
equil_out
=>
eqchease_out
equil_out
=>
eqchease_out
call
copy_itm_to_ids_equilibrium
(
equil_out
,
equil_out_ids
,
flag_status
,
extra_data_itm_to_ids
,
iextra_option
)
call
copy_itm_to_ids_equilibrium
(
equil_out
,
equil_out_ids
,
flag_status
,
extra_data_itm_to_ids
,
iextra_option
)
print
*
,
'equil_out_ids%time= '
,
equil_out_ids
%
time
print
*
,
'equil_out_ids%time= '
,
equil_out_ids
%
time
...
...
This diff is collapsed.
Click to expand it.
Thomas Hayward-Schneider
@thomas.hayward
mentioned in issue
#17
·
2 years ago
mentioned in issue
#17
mentioned in issue #17
Toggle commit list
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