-
Notifications
You must be signed in to change notification settings - Fork 12
736 warnings for function ncore #3060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
167b650
355e43c
3b33e4d
2ba076e
bf25b7c
52fd0de
cc821c0
9f319f4
1567752
229fdda
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,7 +148,7 @@ subroutine init_itv_6 | |
use numerics, only: lablxc, boundl, boundu | ||
implicit none | ||
lablxc(6) = 'dene ' | ||
boundl(6) = 1.00D19 | ||
boundl(6) = 2.00D19 | ||
boundu(6) = 1.00D21 | ||
end subroutine init_itv_6 | ||
|
||
|
@@ -3244,8 +3244,8 @@ subroutine init_itv_145 | |
use numerics, only: lablxc, boundl, boundu | ||
implicit none | ||
lablxc(145) = 'fgwped ' | ||
boundl(145) = 0.500D0 | ||
boundu(145) = 1.000D0 | ||
boundl(145) = 0.100D0 | ||
boundu(145) = 0.9D0 | ||
end subroutine init_itv_145 | ||
|
||
real(kind(1.d0)) function itv_145() | ||
|
@@ -3377,7 +3377,7 @@ subroutine init_itv_152 | |
implicit none | ||
lablxc(152) = 'fgwsep ' | ||
boundl(152) = 0.001D0 | ||
boundu(152) = 1.000D0 | ||
boundu(152) = 0.5D0 | ||
end subroutine init_itv_152 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am a little concerned about changing the default bounds as this could lead to existing input files (that use the default bounds) starting outside of the feasible region. In this instance, the 3 changes are minor so I think I am happy with it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The output values in the large tokamak regression are 0.85 and 0.5 for pedestal and separatrix respectively. @mkovari There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Output values? Have you calculated There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Electron density at separatrix / nGW (fgwsep_out) 5.000E-01 From the output file of the large tokamak regression test There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would still like the warning to be explicit about what sort of lower and upper bounds people should set. For example: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this true for all cases? Even for a stellerator? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe point people to a section in the documentation with the warning? And have a longer explanation in the docs. |
||
|
||
real(kind(1.d0)) function itv_152() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the reason this was not done before? What was the point of the kludge if the solver can deal with a negative
ncore
? I always thought this was to stopNaNs
further down the codeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running the files it dosent seem to make a difference as they all fail eventually anyway. It seems better to have it fail quickly and the user updates the lower bound to prevent it going negative again in future runs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably need @jonmaddock to comment on this, as he is the one that wrote the kludge. For now, since this is a level 2 error, I will approve it but will make a follow-up issue to check that this fix is ok with the UQ tools (which is why the kludge was added)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If needs be we could put the kludge back in without adding back the logger output as it just slows down the terminal output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a good idea, and then #3059 can address making this model more robust