Skip to content

Commit

Permalink
Merge #615
Browse files Browse the repository at this point in the history
615: Reorganize folders r=charleskawczynski a=charleskawczynski

We're preparing to move dycore code outside of `src/`, and decided it would be good to reorganize some of the folders

Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
  • Loading branch information
bors[bot] and charleskawczynski committed Dec 3, 2021
2 parents 726c600 + c1e3aa8 commit 24f361f
Show file tree
Hide file tree
Showing 27 changed files with 113 additions and 79 deletions.
8 changes: 4 additions & 4 deletions docs/src/PlotReferenceStates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import NCDatasets
import CLIMAParameters
import ClimaCore
const CC = ClimaCore
tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "integration_tests", "utils", "generate_namelist.jl"))
include(joinpath(tc_dir, "integration_tests", "utils", "Cases.jl"))
include(joinpath(tc_dir, "integration_tests", "utils", "parameter_set.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "driver", "Cases.jl"))
include(joinpath(tc_dir, "driver", "parameter_set.jl"))
import .NameList
import .Cases
function export_ref_profile(case_name::String)
Expand Down
8 changes: 8 additions & 0 deletions driver/Artifacts.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[LESDrivenSCM_output_dataset]
git-tree-sha1 = "3d6bb62d803fb01908ffe85469a89933f28ced45"

[PyCLES_output]
git-tree-sha1 = "4a54eb3dfa48035d7a4318005963408a4e94c6d5"

[SCAMPy_output]
git-tree-sha1 = "6b82611f969d3cf99102baa7d898e3c759cf014c"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 6 additions & 5 deletions integration_tests/ARM_SGP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["ARM_SGP"]
Expand Down Expand Up @@ -35,6 +36,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/Bomex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["Bomex"]
Expand Down Expand Up @@ -35,6 +36,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/DYCOMS_RF01.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["DYCOMS_RF01"]
Expand Down Expand Up @@ -35,6 +36,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/DryBubble.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["DryBubble"]
Expand All @@ -29,6 +30,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/GABLS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["GABLS"]
Expand Down Expand Up @@ -35,6 +36,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
21 changes: 15 additions & 6 deletions integration_tests/GATE_III.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,26 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

println("Running GATE_III...")
namelist = default_namelist("GATE_III")
case_name = "GATE_III"

best_mse = Dict()

println("Running $case_name...")
namelist = NameList.default_namelist(case_name)
namelist["meta"]["uuid"] = "01"
ds_tc_filename, return_code = @time main(namelist; time_run = true)

@testset "GATE_III" begin
include(joinpath("utils", "post_run_tests.jl"))
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/LES_driven_SCM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["LES_driven_SCM"]
Expand Down Expand Up @@ -39,6 +40,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/Nieuwstadt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["Nieuwstadt"]
Expand Down Expand Up @@ -35,6 +36,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/Rico.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["Rico"]
Expand Down Expand Up @@ -35,6 +36,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/SP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["SP"]
Expand All @@ -29,6 +30,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/Soares.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["Soares"]
Expand Down Expand Up @@ -35,6 +36,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/TRMM_LBA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["TRMM_LBA"]
Expand Down Expand Up @@ -35,6 +36,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
11 changes: 6 additions & 5 deletions integration_tests/life_cycle_Tan2018.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ end
import TurbulenceConvection
using Test

include(joinpath("utils", "main.jl"))
include(joinpath("utils", "generate_namelist.jl"))
include(joinpath("utils", "compute_mse.jl"))
include(joinpath("utils", "mse_tables.jl"))
const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList

best_mse = all_best_mse["life_cycle_Tan2018"]
Expand Down Expand Up @@ -35,6 +36,6 @@ end
for k in keys(best_mse)
test_mse(computed_mse, best_mse, k)
end
include(joinpath("utils", "post_run_tests.jl"))
include(joinpath(tc_dir, "post_processing", "post_run_tests.jl"))
nothing
end
8 changes: 4 additions & 4 deletions perf/common.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import TurbulenceConvection

const tc_dir = dirname(dirname(pathof(TurbulenceConvection)))
include(joinpath(tc_dir, "integration_tests", "utils", "generate_namelist.jl"))
include(joinpath(tc_dir, "integration_tests", "utils", "Cases.jl"))
include(joinpath(tc_dir, "integration_tests", "utils", "parameter_set.jl"))
include(joinpath(tc_dir, "integration_tests", "utils", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "driver", "Cases.jl"))
include(joinpath(tc_dir, "driver", "parameter_set.jl"))
include(joinpath(tc_dir, "driver", "main.jl"))
import .NameList

TurbulenceConvection.initialize_io(sim::Simulation1d) = nothing
Expand Down
5 changes: 5 additions & 0 deletions post_processing/Artifacts.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[PyCLES_output]
git-tree-sha1 = "4a54eb3dfa48035d7a4318005963408a4e94c6d5"

[SCAMPy_output]
git-tree-sha1 = "6b82611f969d3cf99102baa7d898e3c759cf014c"
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import TurbulenceConvection
const TC = TurbulenceConvection
const tc_dir = dirname(dirname(pathof(TC)))

include(joinpath(tc_dir, "integration_tests", "utils", "main.jl"))
include(joinpath(tc_dir, "integration_tests", "utils", "generate_namelist.jl"))
include(joinpath(tc_dir, "integration_tests", "utils", "compute_mse.jl"))
include(joinpath(tc_dir, "integration_tests", "utils", "mse_tables.jl"))
include(joinpath(tc_dir, "driver", "main.jl"))
include(joinpath(tc_dir, "driver", "generate_namelist.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
include(joinpath(tc_dir, "post_processing", "mse_tables.jl"))
import .NameList
best_mse = all_best_mse["Bomex"]

Expand Down
2 changes: 1 addition & 1 deletion utils/print_new_mse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ all_cases = [
filter!(x -> x "GATE_III", all_cases) # no mse tables for GATE_III
filter!(x -> x "SP", all_cases) # not currently running SP

include(joinpath("..", "integration_tests", "utils", "mse_tables.jl"))
include(joinpath("..", "post_processing", "mse_tables.jl"))

percent_reduction_mse = Dict()

Expand Down

0 comments on commit 24f361f

Please sign in to comment.