Skip to content

Commit

Permalink
Merge branch 'master' into spatial_poissons_equation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhardman committed Sep 20, 2024
2 parents dc00e2d + bbc609c commit 4d52eab
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 53 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/debug_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: mpi4py/setup-mpi@v1
with:
mpi: 'openmpi'
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
arch: x64
- uses: julia-actions/cache@v1
- uses: julia-actions/cache@v2
- name: Debug test
run: |
# Hard code the debug level so that we can run without using the
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- uses: julia-actions/cache@v1
- uses: julia-actions/cache@v2
- name: Install dependencies
run: |
# Version 3.9.0 of matplotlib causes an error with PyPlot.jl, so pin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- uses: julia-actions/cache@v1
- uses: julia-actions/cache@v2
- name: Test examples
run: |
touch Project.toml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/longtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- uses: julia-actions/cache@v1
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
with:
project: 'moment_kinetics/'
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/parallel_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: mpi4py/setup-mpi@v1
with:
mpi: 'openmpi'
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
arch: x64
- uses: julia-actions/cache@v1
- uses: julia-actions/cache@v2
- run: |
touch Project.toml
julia --project -O3 --check-bounds=no -e 'import Pkg; Pkg.add(["MPI", "MPIPreferences"]); using MPIPreferences; MPIPreferences.use_jll_binary("OpenMPI_jll")'
Expand All @@ -47,15 +44,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: mpi4py/setup-mpi@v1
with:
mpi: 'openmpi'
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- uses: julia-actions/cache@v1
- uses: julia-actions/cache@v2
- run: |
export MPILIBPATH=$(find /opt/homebrew/Cellar/open-mpi/ -name libmpi.dylib)
touch Project.toml
julia --project -O3 --check-bounds=no -e 'import Pkg; Pkg.add(["MPI", "MPIPreferences"]); using MPIPreferences; MPIPreferences.use_jll_binary("OpenMPI_jll")'
julia --project -O3 --check-bounds=no -e 'using MPI; MPI.install_mpiexecjl(; destdir=".")'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- uses: julia-actions/cache@v1
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
with:
project: 'moment_kinetics/'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- uses: julia-actions/cache@v1
- uses: julia-actions/cache@v2
- name: Test test_scripts
run: |
touch Project.toml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -675,39 +675,37 @@ function _setup_single_input!(this_input_dict::OrderedDict{String,Any},
animate_log_options_1d = Tuple(Symbol(:animate_log_vs_, d) for d one_dimension_combinations_no_t)
animate_options_2d = Tuple(Symbol(:animate_vs_, d2, :_, d1) for (d1, d2) two_dimension_combinations_no_t)
animate_log_options_2d = Tuple(Symbol(:animate_log_vs_, d2, :_, d1) for (d1, d2) two_dimension_combinations_no_t)
if dfns
for variable_name all_dfn_variables
set_defaults_and_check_section!(
this_input_dict, variable_name;
check_moments=false,
(o=>false for o plot_options_1d if String(o) keys(section_defaults))...,
(o=>false for o plot_log_options_1d if String(o) keys(section_defaults))...,
(o=>false for o plot_options_2d if String(o) keys(section_defaults))...,
(o=>false for o plot_log_options_2d if String(o) keys(section_defaults))...,
(o=>false for o animate_options_1d if String(o) keys(section_defaults))...,
(o=>false for o animate_log_options_1d if String(o) keys(section_defaults))...,
(o=>false for o animate_options_2d if String(o) keys(section_defaults))...,
(o=>false for o animate_log_options_2d if String(o) keys(section_defaults))...,
plot_unnorm_vs_vpa=false,
plot_unnorm_vs_vz=false,
plot_unnorm_vs_vpa_z=false,
plot_unnorm_vs_vz_z=false,
plot_log_unnorm_vs_vpa=false,
plot_log_unnorm_vs_vz=false,
plot_log_unnorm_vs_vpa_z=false,
plot_log_unnorm_vs_vz_z=false,
animate_unnorm_vs_vpa=false,
animate_unnorm_vs_vz=false,
animate_unnorm_vs_vpa_z=false,
animate_unnorm_vs_vz_z=false,
animate_log_unnorm_vs_vpa=false,
animate_log_unnorm_vs_vz=false,
animate_log_unnorm_vs_vpa_z=false,
animate_log_unnorm_vs_vz_z=false,
OrderedDict(Symbol(k)=>v for (k,v) section_defaults)...)
# Sort keys to make dict easier to read
sort!(this_input_dict[variable_name])
end
for variable_name all_dfn_variables
set_defaults_and_check_section!(
this_input_dict, variable_name;
check_moments=false,
(o=>false for o plot_options_1d if String(o) keys(section_defaults))...,
(o=>false for o plot_log_options_1d if String(o) keys(section_defaults))...,
(o=>false for o plot_options_2d if String(o) keys(section_defaults))...,
(o=>false for o plot_log_options_2d if String(o) keys(section_defaults))...,
(o=>false for o animate_options_1d if String(o) keys(section_defaults))...,
(o=>false for o animate_log_options_1d if String(o) keys(section_defaults))...,
(o=>false for o animate_options_2d if String(o) keys(section_defaults))...,
(o=>false for o animate_log_options_2d if String(o) keys(section_defaults))...,
plot_unnorm_vs_vpa=false,
plot_unnorm_vs_vz=false,
plot_unnorm_vs_vpa_z=false,
plot_unnorm_vs_vz_z=false,
plot_log_unnorm_vs_vpa=false,
plot_log_unnorm_vs_vz=false,
plot_log_unnorm_vs_vpa_z=false,
plot_log_unnorm_vs_vz_z=false,
animate_unnorm_vs_vpa=false,
animate_unnorm_vs_vz=false,
animate_unnorm_vs_vpa_z=false,
animate_unnorm_vs_vz_z=false,
animate_log_unnorm_vs_vpa=false,
animate_log_unnorm_vs_vz=false,
animate_log_unnorm_vs_vpa_z=false,
animate_log_unnorm_vs_vz_z=false,
OrderedDict(Symbol(k)=>v for (k,v) section_defaults)...)
# Sort keys to make dict easier to read
sort!(this_input_dict[variable_name])
end

set_defaults_and_check_section!(
Expand Down
4 changes: 2 additions & 2 deletions moment_kinetics/test/restart_interpolation_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ function run_test(test_input, base, message, rtol, atol; tol_3V, args...)
name = string(name, "_", (stringify_arg(k, v) for (k, v) in args)...)
end
# Make sure name is not too long
if length(name) > 90
name = name[1:90]
if length(name) > 80
name = name[1:80]
end
if parallel_io
name *= "parallel-io"
Expand Down

0 comments on commit 4d52eab

Please sign in to comment.