Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
aelligp committed Apr 3, 2024
1 parent 3d3a535 commit 749dc7f
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions src/stokes/MetaStokes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ function make_velocity_struct!(ndim::Integer; name::Symbol=:Velocity)
return new{$PTArray}(@zeros(ni[1]...), @zeros(ni[2]...), @zeros(ni[3]...))
end

$(name)(args::Vararg{T, N}) where {T<:AbstractArray, N} = new{$PTArray}(args...)

$(name)(args::Vararg{T,N}) where {T<:AbstractArray,N} = new{$PTArray}(args...)
end
end
end
Expand Down Expand Up @@ -84,8 +83,7 @@ function make_symmetrictensor_struct!(nDim::Integer; name::Symbol=:SymmetricTens
)
end

$(name)(args::Vararg{T, N}) where {T<:AbstractArray, N} = new{$PTArray}(args...)

$(name)(args::Vararg{T,N}) where {T<:AbstractArray,N} = new{$PTArray}(args...)
end
end
end
Expand Down Expand Up @@ -113,8 +111,7 @@ function make_residual_struct!(ndim; name::Symbol=:Residual)
return new{typeof(Rx)}(Rx, Ry, Rz, RP)
end

$(name)(args::Vararg{T, N}) where {T<:AbstractArray, N} = new{$PTArray}(args...)

$(name)(args::Vararg{T,N}) where {T<:AbstractArray,N} = new{$PTArray}(args...)
end
end
end
Expand Down Expand Up @@ -223,10 +220,18 @@ function make_stokes_struct!(; name::Symbol=:StokesArrays)
)
end

function $(name)(args::Vararg{T, N}) where {T<:AbstractArray, N}
new{ViscoElastic, typeof(args[4]), typeof(args[5]), typeof(args[end]), typeof(args[1]), N}(args...)
function $(name)(args::Vararg{T,N}) where {T<:AbstractArray,N}
return new{
ViscoElastic,
typeof(args[4]),
typeof(args[5]),
typeof(args[end]),
typeof(args[1]),
N,
}(
args...
)
end

end
end
end
Expand Down

0 comments on commit 749dc7f

Please sign in to comment.