@@ -67,13 +67,11 @@ mutable struct Simulation <: AbstractSimulation
6767 Δt= 0.25 , ν= 0. , g= nothing , U= nothing , ϵ= 1 , perdir= (),
6868 uλ= nothing , exitBC= false , body:: AbstractBody = NoBody (),
6969 T= Float32, mem= Array) where N
70- # @assert !(isa(u_BC,Function) && isa(uλ,Function)) "`u_BC` will be used to generate `uλ=u_BC(t=0)` do not provide both"
7170 @assert ! (isnothing (U) && isa (u_BC,Function)) " `U` must be specified if `u_BC` is a Function"
7271 isa (g,Function) && @assert first (methods (g)). nargs== 4 " g::Function needs to be defined as g(i,x,t)"
7372 isa (g,Function) && @assert all (typeof .(ntuple (i-> g (i,zeros (SVector{N,T}),zero (T)),N)).== T) " `g` is not type stable"
7473 isa (u_BC,Function) && @assert first (methods (u_BC)). nargs== 4 " u_BC::Function needs to be defined as u_BC(i,x,t)"
7574 isa (u_BC,Function) && @assert all (typeof .(ntuple (i-> u_BC (i,zeros (SVector{N,T}),zero (T)),N)).== T) " `u_BC` is not type stable"
76- # @assert !isnothing(uλ) && (uλ = isa(u_BC, Function) ? uλ = (i,x)->u_BC(i,x,0) : uλ = (i,_)->u_BC[i])
7775 isnothing (U) && (U = √ sum (abs2,u_BC))
7876 flow = Flow (dims,u_BC;Δt,ν,g,T,f= mem,perdir,exitBC)
7977 measure! (flow,body;ϵ)
0 commit comments