Skip to content

Commit

Permalink
change from error to warning to allow 0D setups
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Feb 18, 2024
1 parent 1bc3fba commit 822a5e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LaMEM_ModelGeneration/ErrorChecking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ function Check_LaMEM_Model(m::Model)
end

if (m.ModelSetup.msetup=="files") && diff([extrema(m.Grid.Phases)...])[1]==0 && diff([extrema(m.Grid.Temp)...])[1]==0
error("Your initial `Temp` grid is constant, as is your initial `Phases` grid.
You do need to set some variability to see action, for example with the GMG function `AddSphere!(model,cen=(0.0,0.0,0.0), radius=(0.15, ))` ")
@warn "Your initial `Temp` grid is constant, as is your initial `Phases` grid. \n Is that intended? \n In most cases, you would want to set some variability in the initial conditions, \n for example with the `GeophysicalModelGenerator` function `AddSphere!(model,cen=(0.0,0.0,0.0), radius=(0.15, ))` "
end

if (m.Solver.SolverType!="direct") && (m.Solver.SolverType!="multigrid")
Expand Down

0 comments on commit 822a5e6

Please sign in to comment.