Skip to content

Commit 1dde9bc

Browse files
rename ice_mass to ice_mix_ratio
1 parent 689774b commit 1dde9bc

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bindings/python/lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ BOOST_PYTHON_MODULE(libcloudphxx)
418418
.def("diag_water_cons", &lgr::particles_proto_t<real_t>::diag_water_cons)
419419
.def("diag_ice_a_mom", &lgr::particles_proto_t<real_t>::diag_ice_a_mom)
420420
.def("diag_ice_c_mom", &lgr::particles_proto_t<real_t>::diag_ice_c_mom)
421-
.def("diag_ice_mass", &lgr::particles_proto_t<real_t>::diag_ice_mass)
421+
.def("diag_ice_mix_ratio", &lgr::particles_proto_t<real_t>::diag_ice_mix_ratio)
422422
.def("outbuf", &lgrngn::outbuf<real_t>)
423423
.def("get_attr", &lgr::particles_proto_t<real_t>::get_attr)
424424
;

include/libcloudph++/lgrngn/particles.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace libcloudphxx
108108
virtual void diag_wet_mom(const int&) { assert(false); }
109109
virtual void diag_ice_a_mom(const int&) { assert(false); }
110110
virtual void diag_ice_c_mom(const int&) { assert(false); }
111-
virtual void diag_ice_mass() { assert(false); }
111+
virtual void diag_ice_mix_ratio() { assert(false); }
112112
virtual void diag_wet_mass_dens(const real_t&, const real_t&) { assert(false); }
113113
virtual void diag_chem(const enum common::chem::chem_species_t&) { assert(false); }
114114
virtual void diag_precip_rate() { assert(false); }
@@ -206,7 +206,7 @@ namespace libcloudphxx
206206
void diag_wet_mom(const int &k);
207207
void diag_ice_a_mom(const int &k);
208208
void diag_ice_c_mom(const int &k);
209-
void diag_ice_mass();
209+
void diag_ice_mix_ratio();
210210
void diag_kappa_mom(const int &k);
211211
void diag_up_mom(const int&);
212212
void diag_vp_mom(const int&);
@@ -315,7 +315,7 @@ namespace libcloudphxx
315315
void diag_wet_mom(const int &k);
316316
void diag_ice_a_mom(const int &k);
317317
void diag_ice_c_mom(const int &k);
318-
void diag_ice_mass();
318+
void diag_ice_mix_ratio();
319319
void diag_kappa_mom(const int&);
320320
void diag_up_mom(const int&);
321321
void diag_vp_mom(const int&);

src/particles_diag.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ namespace libcloudphxx
422422
pimpl->moms_calc(pimpl->ice_c.begin(), n);
423423
}
424424

425-
// computes ice volume
425+
// computes ice mixing ratio
426426
template <typename real_t, backend_t device>
427-
void particles_t<real_t, device>::diag_ice_mass()
427+
void particles_t<real_t, device>::diag_ice_mix_ratio()
428428
{
429429
pimpl->moms_calc(thrust::make_transform_iterator(
430430
thrust::make_zip_iterator(thrust::make_tuple(pimpl->ice_a.begin(), pimpl->ice_c.begin(), pimpl->ice_rho.begin())),

tests/python/unit/ice_SD.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def lognormal(lnr):
5353
prtcls.step_sync(opts, th, rv, rhod)
5454
prtcls.step_async(opts)
5555
prtcls.diag_all()
56-
prtcls.diag_ice_mass()
56+
prtcls.diag_ice_mix_ratio()
5757
ri = np.frombuffer(prtcls.outbuf())
5858
print("ice mixing ratio ", ri[0] * 1e3, "g/kg")
5959
print("water vapor mixing ratio ", rv[0] * 1e3, "g/kg")

0 commit comments

Comments
 (0)