Skip to content

Commit

Permalink
replace @show with @info
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Sep 27, 2024
1 parent a8f8d82 commit ac80918
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions experiments/ClimaEarth/run_amip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ function solve_coupler!(cs)
cs.dates.date[1] = TimeManager.current_date(cs, t)

## print date on the first of month
cs.dates.date[1] >= cs.dates.date1[1] && @show(cs.dates.date[1])
cs.dates.date[1] >= cs.dates.date1[1] && @info(cs.dates.date[1])

if cs.mode.name == "amip"

Expand Down Expand Up @@ -794,7 +794,7 @@ walltime = ClimaComms.@elapsed comms_ctx.device begin
solve_coupler!(cs)
end
end
@show(walltime)
@info(walltime)

## Use ClimaAtmos calculation to show the simulated years per day of the simulation (SYPD)
es = CA.EfficiencyStats(tspan, walltime)
Expand Down
2 changes: 1 addition & 1 deletion experiments/ClimaEarth/run_cloudless_aquaplanet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function solve_coupler!(cs)
cs.dates.date[1] = TimeManager.current_date(cs, t)

## print date on the first of month
cs.dates.date[1] >= cs.dates.date1[1] && @show(cs.dates.date[1])
cs.dates.date[1] >= cs.dates.date1[1] && @info(cs.dates.date[1])

ClimaComms.barrier(comms_ctx)

Expand Down
2 changes: 1 addition & 1 deletion experiments/ClimaEarth/run_cloudy_aquaplanet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function solve_coupler!(cs)
cs.dates.date[1] = TimeManager.current_date(cs, t)

## print date on the first of month
cs.dates.date[1] >= cs.dates.date1[1] && @show(cs.dates.date[1])
cs.dates.date[1] >= cs.dates.date1[1] && @info(cs.dates.date[1])

ClimaComms.barrier(comms_ctx)

Expand Down
2 changes: 1 addition & 1 deletion experiments/ClimaEarth/run_cloudy_slabplanet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ function solve_coupler!(cs)
cs.dates.date[1] = TimeManager.current_date(cs, t)

## print date on the first of month
cs.dates.date[1] >= cs.dates.date1[1] && @show(cs.dates.date[1])
cs.dates.date[1] >= cs.dates.date1[1] && @info(cs.dates.date[1])

ClimaComms.barrier(comms_ctx)

Expand Down
2 changes: 1 addition & 1 deletion experiments/ClimaEarth/run_dry_held_suarez.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function solve_coupler!(cs)
cs.dates.date[1] = TimeManager.current_date(cs, t)

## print date on the first of month
cs.dates.date[1] >= cs.dates.date1[1] && @show(cs.dates.date[1])
cs.dates.date[1] >= cs.dates.date1[1] && @info(cs.dates.date[1])

## step sims
FieldExchanger.step_model_sims!(cs.model_sims, t)
Expand Down
2 changes: 1 addition & 1 deletion experiments/ClimaEarth/run_moist_held_suarez.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function solve_coupler!(cs)
cs.dates.date[1] = TimeManager.current_date(cs, t)

## print date on the first of month
cs.dates.date[1] >= cs.dates.date1[1] && @show(cs.dates.date[1])
cs.dates.date[1] >= cs.dates.date1[1] && @info(cs.dates.date[1])
ClimaComms.barrier(comms_ctx)

## run component models sequentially for one coupling timestep (Δt_cpl)
Expand Down
4 changes: 2 additions & 2 deletions experiments/ClimaEarth/user_io/debug_plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ function plot_global_conservation(

# check that the relative error is small (TODO: reduce this to sqrt(eps(FT)))
if !softfail
@show typeof(cc)
@show rse[end]
@info typeof(cc)
@info rse[end]
@assert rse[end] < 3e-3
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/aqua.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Aqua

# Uncomment for debugging:
# for method_ambiguity in ambs
# @show method_ambiguity
# @info method_ambiguity
# end
@test length(ambs) == 0
end
Expand Down

0 comments on commit ac80918

Please sign in to comment.