Skip to content

Commit

Permalink
Add greeting
Browse files Browse the repository at this point in the history
  • Loading branch information
utkinis committed Nov 25, 2023
1 parent 4b441f1 commit 52e8586
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
16 changes: 1 addition & 15 deletions scripts_future_API/tm_stokes_mpi_wip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,6 @@ max_abs_g(A) = (max_l = maximum(abs.(interior(A))); MPI.Allreduce(max_l, MPI.MAX
@views av_xz(A) = 0.25 .* (A[1:end-1, :, 1:end-1] .+ A[2:end, :, 1:end-1, :] .+ A[2:end, :, 2:end, :] .+ A[1:end-1, :, 2:end])
@views av_yz(A) = 0.25 .* (A[:, 1:end-1, 1:end-1] .+ A[:, 2:end, 1:end-1] .+ A[:, 2:end, 2:end] .+ A[:, 1:end-1, 2:end])

function fastice_intro(; kwargs...)
intro = raw"""
┌──────────────────────────────────────────────────────────┐
│ ______ __ ____ _ __ │
│ / ____/____ _ _____ / /_ / _/_____ ___ (_)/ / │
│ / /_ / __ `// ___// __/ / / / ___// _ \ / // / │
│ / __/ / /_/ /(__ )/ /_ _/ / / /__ / __/_ / // / │
│ /_/ \__,_//____/ \__//___/ \___/ \___/(_)__/ //_/ │
│ /___/ │
└──────────────────────────────────────────────────────────┘
"""
printstyled(intro; kwargs...)
end

function main(; do_visu=false, do_save=false)
MPI.Init()

Expand All @@ -72,7 +58,7 @@ function main(; do_visu=false, do_save=false)
grid_l = local_grid(grid_g, topo)

if me == 0
fastice_intro(bold=true, color=:blue)
FastIce.greet(bold=true, color=:blue)
printstyled("Running FastIce.jl 🧊 \n"; bold=true, color=:blue)
printstyled(grid_g; bold=true)
end
Expand Down
13 changes: 13 additions & 0 deletions src/FastIce.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
module FastIce

const GREETING = raw"""
┌──────────────────────────────────────────────────────────┐
│ ______ __ ____ _ __ │
│ / ____/____ _ _____ / /_ / _/_____ ___ (_)/ / │
│ / /_ / __ `// ___// __/ / / / ___// _ \ / // / │
│ / __/ / /_/ /(__ )/ /_ _/ / / /__ / __/_ / // / │
│ /_/ \__,_//____/ \__//___/ \___/ \___/(_)__/ //_/ │
│ /___/ │
└──────────────────────────────────────────────────────────┘
"""

greet(; kwargs...) = printstyled(GREETING; kwargs...)

# core modules
include("Grids/Grids.jl")
include("GridOperators.jl")
Expand Down

0 comments on commit 52e8586

Please sign in to comment.