Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DG1d.jl
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
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
DG1d.jl
Commits
829f7255
Verified
Commit
829f7255
authored
8 months ago
by
Florian Atteneder
Browse files
Options
Downloads
Patches
Plain Diff
c2p_set_atmosphere_on_failure=true should ignore c2p_freeze_atm
parent
6c643b7b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/GRHD/cons2prim.jl
+6
-2
6 additions, 2 deletions
src/GRHD/cons2prim.jl
with
6 additions
and
2 deletions
src/GRHD/cons2prim.jl
+
6
−
2
View file @
829f7255
...
...
@@ -166,7 +166,9 @@ end
if
!
c2p_set_atmosphere_on_failure
&&
(
c2p_freeze_atm
>
0.0
&&
c2p_reset_atm
==
0.0
&&
D
<
ρmin
)
@warn
"Require atmosphere but denied by mask"
D
ρmin
xcoord
zcoord
c2p_freeze_atm
c2p_reset_atm
TODO
(
"Upsi"
)
elseif
(
c2p_freeze_atm
==
0.0
&&
D
<
ρmin
)
||
(
c2p_freeze_atm
>
0.0
&&
c2p_reset_atm
>
0.0
)
elseif
(
c2p_set_atmosphere_on_failure
&&
D
<
ρmin
)
||
(
c2p_freeze_atm
==
0.0
&&
D
<
ρmin
)
||
(
c2p_freeze_atm
>
0.0
&&
c2p_reset_atm
>
0.0
)
if
D
<
ρmin
c2p_init_admissible
=
0.0
end
...
...
@@ -354,7 +356,9 @@ end
if
!
c2p_set_atmosphere_on_failure
&&
(
c2p_freeze_atm
>
0.0
&&
c2p_reset_atm
==
0.0
&&
ρ
<
ρmin
)
@warn
"Require atmosphere but denied by mask"
D
ρmin
xcoord
zcoord
c2p_freeze_atm
c2p_reset_atm
TODO
(
"Upsi"
)
elseif
(
c2p_freeze_atm
==
0.0
&&
ρ
<
ρmin
)
||
(
c2p_freeze_atm
>
0.0
&&
c2p_reset_atm
>
0.0
)
elseif
(
c2p_set_atmosphere_on_failure
&&
ρ
<
ρmin
)
||
(
c2p_freeze_atm
==
0.0
&&
ρ
<
ρmin
)
||
(
c2p_freeze_atm
>
0.0
&&
c2p_reset_atm
>
0.0
)
@goto
impose_atmosphere
end
# compute thermodynamic vars
...
...
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