Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CryoGrid.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
Package registry
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CryoGrid
CryoGrid.jl
Commits
ef1de842
Commit
ef1de842
authored
3 years ago
by
Brian Groenke
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in CFL condition from recent changes
parent
749d7b5c
No related branches found
No related tags found
1 merge request
!57
Add support for per-layer callbacks
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Drivers/Drivers.jl
+1
-0
1 addition, 0 deletions
src/Drivers/Drivers.jl
src/Drivers/courant_step.jl
+1
-1
1 addition, 1 deletion
src/Drivers/courant_step.jl
with
2 additions
and
1 deletion
src/Drivers/Drivers.jl
+
1
−
0
View file @
ef1de842
...
...
@@ -16,6 +16,7 @@ using ComponentArrays
using
Dates
using
DimensionalData
using
Flatten
using
IfElse
using
ModelParameters
using
LinearAlgebra
using
Reexport
...
...
This diff is collapsed.
Click to expand it.
src/Drivers/courant_step.jl
+
1
−
1
View file @
ef1de842
...
...
@@ -24,6 +24,6 @@ function (cfl::CFLStepLimiter{<:Tile,Nothing})(u,p,t)
end
end
function
CFLStepLimiter
(
tile
::
HeatOnlyTile
;
courant_number
=
1
//
2
,
default_dt
=
60.0
,
iip
=
true
)
cfl
=
iip
?
CFLStepLimiter
(
tile
,
zero
(
dustrip
(
Δ
(
setup
.
grid
))),
default_dt
)
:
CFL
HeatSta
te
(
tile
,
nothing
,
default_dt
)
cfl
=
iip
?
CFLStepLimiter
(
tile
,
zero
(
dustrip
(
Δ
(
tile
.
grid
))),
default_dt
)
:
CFL
StepLimi
te
r
(
tile
,
nothing
,
default_dt
)
StepsizeLimiter
(
cfl
;
safety_factor
=
courant_number
,
max_step
=
true
)
end
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