Skip to content

Commit

Permalink
Merge pull request igfuw#174 from pdziekan/out_spec_freq
Browse files Browse the repository at this point in the history
Out spec freq
  • Loading branch information
pdziekan committed May 13, 2024
2 parents b4aea9d + df1b994 commit 15fa71e
Show file tree
Hide file tree
Showing 12,104 changed files with 331 additions and 325 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions src/opts/opts_lgrngn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void setopts_micro(
("rd_min", po::value<setup::real_t>()->default_value(rt_params.cloudph_opts_init.rd_min), "minimum dry radius of initialized droplets [m] (negative means automatic detection)")
("rd_max", po::value<setup::real_t>()->default_value(rt_params.cloudph_opts_init.rd_max), "maximum dry radius of initialized droplets [m] (negative means automatic detection); sd_conc_large_tail==true may result in initialization of even larger droplets")
("relax_ccn", po::value<bool>()->default_value(false) , "add CCN if per-level mean of CCN concentration is lower than (case-specific) desired concentration")
("outfreq_spec", po::value<int>()->default_value(0), "frequency (in timesteps) of spectrum output; 0 for outfreq_spec=outfreq")
// TODO: MAC, HAC, vent_coef
;
po::variables_map vm;
Expand All @@ -95,6 +96,9 @@ void setopts_micro(

rt_params.async = vm["async"].as<bool>();
rt_params.gccn = vm["gccn"].as<setup::real_t>();
rt_params.outfreq_spec = vm["outfreq_spec"].as<int>();
if(rt_params.outfreq_spec == 0) rt_params.outfreq_spec = user_params.outfreq;
assert((rt_params.outfreq_spec % user_params.outfreq == 0) && "outfreq_spec needs to be a multiple of outfreq");
// bool unit_test = vm["unit_test"].as<bool>();
setup::real_t ReL = vm["ReL"].as<setup::real_t>();

Expand Down
6 changes: 3 additions & 3 deletions src/solvers/lgrngn/diag_lgrngn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ void slvr_lgrngn<ct_params_t>::diag()
// this->record_aux("bigrain_gccn_rw_mom0", prtcls->outbuf());

// recording requested statistical moments
if ((this->timestep ) % static_cast<int>(params.outfreq_spec) == 0)
{
// dry
int rng_num = 0;
Expand All @@ -203,10 +204,9 @@ void slvr_lgrngn<ct_params_t>::diag()
}
rng_num++;
}
}
{

// wet
int rng_num = 0;
rng_num = 0;
for (auto &rng_moms : params.out_wet)
{
auto &rng(rng_moms.first);
Expand Down
1 change: 1 addition & 0 deletions src/solvers/lgrngn/hook_ante_loop_lgrngn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ void slvr_lgrngn<ct_params_t>::hook_ante_loop(int nt)
this->record_aux_const("rd_min", "lgrngn", params.cloudph_opts_init.rd_min);
this->record_aux_const("rd_max", "lgrngn", params.cloudph_opts_init.rd_max);
this->record_aux_const("relax_ccn", "user_params", params.user_params.relax_ccn);
this->record_aux_const("outfreq_spec", "lgrngn", params.outfreq_spec);
}
this->mem->barrier();
}
1 change: 1 addition & 0 deletions src/solvers/slvr_lgrngn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ class slvr_lgrngn : public std::conditional_t<ct_params_t::sgs_scheme == libmpda
outmom_t<real_t> out_dry, out_wet;
bool flag_coal; // do we want coal after spinup
real_t gccn; // multiplicity of gccn
int outfreq_spec;
};

private:
Expand Down
2 changes: 1 addition & 1 deletion tests/moist_thermal/refdata/stats_lgrngn_ens_1000.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ lgrngn
(0,10)
[ 2.00577e-18 0.00232077 0.00375493 0.00424003 0.00479011 0.00692947 0.0100661 0.0170639 0.0236114 0.0346478 0.0569673 ]
(0,10)
[ 0.000148427 0.504256 0.438996 0.393824 0.350153 0.282783 0.226725 0.18533 0.213148 0.239273 0.278241 ]
[ 0.000148427 0.504256 0.438996 0.388295 0.350153 0.282783 0.226725 0.18533 0.213148 0.239273 0.278241 ]
(0,10)
[ 0.000149421 0.518692 0.465088 0.420767 0.380097 0.323393 0.292459 0.299863 0.346371 0.457317 0.678049 ]
sdconc_avg
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int ac, char** av)
"--case=dry_pbl",
"--case=moist_thermal",
"--case=dycoms_rf02",
"--case=dycoms_rf02 --out_dry_spec=1 --out_wet_spec=1",
"--case=dycoms_rf02 --out_dry_spec=1 --out_wet_spec=1 --outfreq_spec=1000",
"--case=dycoms_rf02 --relax_th_rv=1",
"--case=dycoms_rf02 --window=1",
"--case=rico11",
Expand Down
Binary file modified tests/unit/refdata_iles/10006634985057289474/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10017065608167310367/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10035506677889309407/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10040010365868687479/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10040446920197048105/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10060870208253203663/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10071967860097968235/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10077954333293879518/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10087175458224077118/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/100876572066295087/const.h5
Binary file not shown.
Binary file modified tests/unit/refdata_iles/100876572066295087/timestep0000000000.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10094050542918645785/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10098650354566356653/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10108554335891828406/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10117137836222826275/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1012080912767635793/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10124974570615811578/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10150649091945981345/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10156943196762792097/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10157225499981734486/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1015789356463262349/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10164956061268197933/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10171207250173902343/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10206278760228541936/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10237497869573310992/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10243692819932087667/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10252631797640207601/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10261129702751710527/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10266204063956385242/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10277967451417177448/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10283269845434060751/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10283279751031649870/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10285442848907193641/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10299270775023676337/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1030872983294934858/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10314969496468618743/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10320033183689409305/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10334001677565425405/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed tests/unit/refdata_iles/1033897739722836935/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10340221418173827248/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1035594095422009962/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10361103997401977366/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10363790690626264749/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10364002768665190797/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10384494887108869435/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10391057900818356677/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10406542844303638525/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10410074717735228899/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10423661414271790143/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1044159569726350196/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10464834069214732617/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10475119391141168389/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10476501961856922347/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10487898455181119531/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10487967604432015828/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10495769632177083784/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10499554815385448741/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10502405834980102449/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10518033007478901278/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1053347525939941467/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10536502118964883247/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10538794307959943247/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10539816609247345032/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10551449701650813180/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10558415442617776996/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10561372013422546708/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10579302261032599912/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10589582008460960223/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10594980078706447157/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10596829033216015731/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1061516905630631130/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10619614988604053462/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10627651450224290997/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10628868892118074691/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10655871584717192323/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10662056565211167462/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10676905627899068811/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10677192663716709133/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10688394732482827428/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10691057901671837037/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1069663135313446587/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10714582679708339142/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1071745414767266604/const.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/10719814023723761838/const.h5
Binary file not shown.
Binary file not shown.
Binary file modified tests/unit/refdata_iles/1072217268210186546/const.h5
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 15fa71e

Please sign in to comment.