Skip to content

Commit 52b79d2

Browse files
authored
Merge pull request #557 from MESAHub/rf/ion
Resurect the ionization module
2 parents b90a21f + 5132677 commit 52b79d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+7512
-12
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ gyre/ @rhdtownsend @warrickball
1818
hdfio5 @rhdtownsend
1919
interp_1d/ @rhdtownsend
2020
interp_2d/ @rhdtownsend
21+
ionization/ @fxt44
2122
kap/ @fxt44 @Debraheem
2223
linters/
2324
turb/

clean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ echo "removing some data to force reinstall"
1313
rm -rf data/atm_data
1414
rm -rf data/eosDT_data
1515
rm -rf data/kap_data
16+
rm -rf data/ionization_data
1617
rm -rf data/chem_data
1718
rm -rf data/colors_data
1819
rm -rf data/rates_data/cache

each_package_do

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ do_one eos
2424
do_one gyre
2525
do_one interp_1d
2626
do_one interp_2d
27+
do_one ionization
2728
do_one kap
2829
do_one math
2930
do_one mtx

empty_caches

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
rm -f data/eos*_data/cache/*
4+
rm -f data/ionization_data/cache/*
45
rm -f data/kap_data/cache/*
56
rm -f data/rates_data/cache/*
67
rm -f eos/data/eos_data/cache/*

install

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,12 @@ do_one_parallel net
354354
do_one star_data
355355
do_one turb
356356

357+
if [ ! -r data/ionization_data ]
358+
then
359+
do_input_data ionization
360+
fi
361+
do_one_parallel ionization
362+
357363
if [ ! -r data/atm_data ]
358364
then
359365
do_input_data atm

ionization/build_and_test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
../utils/build_and_test

ionization/build_and_test_parallel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
../utils/build_and_test_parallel

ionization/build_data_and_export

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
function check_okay {
4+
if [ $? -ne 0 ]
5+
then
6+
exit 1
7+
fi
8+
}
9+
10+
11+
echo 'create ionization_data'
12+
13+
rm -rf ionization_data
14+
15+
echo 'tar xfJ ionization_data.tar.xz'
16+
tar xfJ test/ionization_data.tar.xz
17+
check_okay
18+
19+
rm -rf ../data/ionization_data
20+
check_okay
21+
22+
mkdir ../data/ionization_data
23+
check_okay
24+
25+
mv ionization_data/*.data ../data/ionization_data
26+
check_okay
27+
28+
mkdir ../data/ionization_data/cache
29+
check_okay
30+
31+
echo "done"

ionization/clean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cd make; make clean
2+
cd ../test/make; make clean

ionization/export

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
../utils/e1

0 commit comments

Comments
 (0)