-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from trontrytel/new_names
New names
- Loading branch information
Showing
64 changed files
with
123 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | ||
add_subdirectory(thesis_chap_6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <iostream> | ||
#include <iomanip> | ||
#include <set> | ||
#include <string> | ||
#include <sstream> | ||
#include <vector> | ||
|
||
using std::set; | ||
using std::string; | ||
using std::ostringstream; | ||
using std::cerr; | ||
using std::endl; | ||
using std::exception; | ||
using std::vector; | ||
|
||
#include <boost/units/systems/si.hpp> | ||
namespace si = boost::units::si; | ||
using boost::units::quantity; | ||
|
||
|
||
// error reporting | ||
#define error_macro(msg) \ | ||
{ \ | ||
cerr << "error: " << msg << endl; \ | ||
throw exception(); \ | ||
} | ||
|
||
#define notice_macro(msg) \ | ||
{ \ | ||
cerr << " info: " << msg << endl; \ | ||
} | ||
|
||
string zeropad(int n, int w=3) | ||
{ | ||
std::ostringstream tmp; | ||
tmp << std::setw(w) << std::setfill('0') << n; | ||
return tmp.str(); | ||
} |
6 changes: 3 additions & 3 deletions
6
...MD_2015/tests/chem_sandbox/CMakeLists.txt → .../thesis_2017/thesis_chap_6/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
|
||
# Runs all the simulations and plots the results from chapter 6 of PhD thesis of Jaruga. | ||
# The simulations take up to 12 hours (on cuda-k-2 server using CUDA and one thread) | ||
# It might be useful to run them in the background: nohup ./thesis_script.sh & | ||
|
||
cd ../../build/thesis_2017/thesis_chap_6 | ||
|
||
export OMP_NUM_THREADS=1 | ||
|
||
# run all the thesis test cases | ||
./calc_chem ../../ | ||
|
||
plot the quicklook plots | ||
./plot_lgrngn_ch ../../ | ||
./plot_lgrngn_ch_chem ../../ | ||
|
||
# plot the python scripts for pH and size distributions | ||
python ../../../thesis_2017/thesis_chap_6/chem_plots/ph_plot.py | ||
python ../../../thesis_2017/thesis_chap_6/chem_plots/rain_histograms_single.py | ||
python ../../../thesis_2017/thesis_chap_6/chem_plots/rain_histograms_all.py | ||
|
||
# check how much H2SO4 mass was created and what is the error | ||
python ../../../thesis_2017/thesis_chap_6/chem_plots/how_effective.py | ||
python ../../../thesis_2017/thesis_chap_6/chem_plots/test_mole_const.py | ||
|
||
# thesis_plots folder will contain all plots included in thesis | ||
mkdir -p thesis_plots | ||
|
||
copy quicklook plots from case1 and case4 | ||
for sim_run in case1 case4; do | ||
for el in nc na ef rd rr sd_conc; do | ||
dir_name=out_${sim_run}.plot/${el}/; | ||
mkdir -p thesis_plots/${dir_name}; | ||
for sim_time in 10000 11800; do | ||
cp ${dir_name}/${sim_time}.svg thesis_plots/${dir_name}/${sim_time}.svg; | ||
done | ||
done | ||
done | ||
|
||
# copy quicklook plots from the base case | ||
for el in nc na ef rd rr sd_conc SO2g O3g H2O2g S_VI_aq H2O2_aq O3_aq; do | ||
dir_name=out_case_base.plot/${el}/; | ||
mkdir -p thesis_plots/${dir_name}; | ||
for sim_time in 10000 11800; do | ||
cp ${dir_name}/${sim_time}.svg thesis_plots/${dir_name}/${sim_time}.svg; | ||
done | ||
done | ||
|
||
# copy quicklook plots from case2 | ||
for kernel in hall hall_davis_no_waals hall_pinsky_stratocumulus onishi_hall onishi_hall_davis_no_waals vohl_davis_no_waals; do | ||
dir_name=out_case2_${kernel}_42.plot/rr/; | ||
mkdir -p thesis_plots/${dir_name}; | ||
cp ${dir_name}/11800.svg thesis_plots/${dir_name}/11800.svg; | ||
done | ||
|
||
# copy pH and size distribution plots | ||
cp -r plots_of_pH/ thesis_plots/. | ||
cp -r plots_of_size_distr/ thesis_plots/. | ||
|
||
# pack all plots included in thesis | ||
tar -cvf thesis_plots.tar thesis_plots |