@@ -485,7 +485,7 @@ class PhysProp {
485
485
real2d flw_abs;
486
486
487
487
auto nrh = RadConstants::nrh;
488
- auto nbnd = prop.getDimSize ( " lw_band" );
488
+ // auto nbnd = prop.getDimSize( "lw_band" );
489
489
auto nswbands = prop.getDimSize ( " sw_band" );
490
490
491
491
prop.read ( fsw_ext, " ext_sw" );
@@ -578,9 +578,9 @@ class PhysProp {
578
578
// Read optics data of type 'volcanic_radius'
579
579
void volcanic_radius_optics_init (physprop_t & phys_prop, yakl::SimpleNetCDF& prop)
580
580
{
581
- auto n_mu_samples = prop.getDimSize ( " mu_samples" );
582
- auto nbnd = prop.getDimSize ( " lw_band" );
583
- auto nswbands = prop.getDimSize ( " sw_band" );
581
+ // auto n_mu_samples = prop.getDimSize( "mu_samples" );
582
+ // auto nbnd = prop.getDimSize( "lw_band" );
583
+ // auto nswbands = prop.getDimSize( "sw_band" );
584
584
585
585
prop.read ( phys_prop.r_sw_ext , " bext_sw" );
586
586
prop.read ( phys_prop.r_sw_scat , " bsca_sw" );
@@ -595,8 +595,8 @@ class PhysProp {
595
595
// Read optics data of type 'volcanic'
596
596
void volcanic_optics_init (physprop_t & phys_prop, yakl::SimpleNetCDF& prop)
597
597
{
598
- auto nbnd = prop.getDimSize ( " lw_band" );
599
- auto nswbands = prop.getDimSize ( " sw_band" );
598
+ // auto nbnd = prop.getDimSize( "lw_band" );
599
+ // auto nswbands = prop.getDimSize( "sw_band" );
600
600
601
601
prop.read ( phys_prop.sw_nonhygro_ext , " bext_sw" );
602
602
prop.read ( phys_prop.sw_nonhygro_scat , " bsca_sw" );
@@ -611,7 +611,7 @@ class PhysProp {
611
611
void hygroscopic_optics_init (physprop_t & phys_prop, yakl::SimpleNetCDF& prop)
612
612
{
613
613
// temp data from hygroscopic file before interpolation onto cam-rh-mesh
614
- int nfilerh; // number of rh values in file
614
+ // int nfilerh; // number of rh values in file
615
615
real1d frh;
616
616
real2d fsw_ext, fsw_ssa, fsw_asm, flw_abs;
617
617
@@ -631,7 +631,7 @@ class PhysProp {
631
631
prop.read ( frh, " rh" );
632
632
633
633
real1d fswe (" " ,nrh), fsws (" " ,nrh),
634
- fswa (" " ,nrh), flwa (" " ,nrh);
634
+ fswa (" " ,nrh), flwa (" " ,nrh);
635
635
636
636
// interpolate onto cam's rh mesh
637
637
parallel_for (SimpleBounds<2 > (nswbands, nrh), YAKL_LAMBDA (int kbnd, int krh)
@@ -671,8 +671,8 @@ class PhysProp {
671
671
// Read optics data of type 'nonhygro'
672
672
void nonhygro_optics_init (physprop_t & phys_prop, yakl::SimpleNetCDF& prop)
673
673
{
674
- auto nlwbands = prop.getDimSize ( " lw_band" );
675
- auto nswbands = prop.getDimSize ( " sw_band" );
674
+ // auto nlwbands = prop.getDimSize( "lw_band" );
675
+ // auto nswbands = prop.getDimSize( "sw_band" );
676
676
677
677
prop.read ( phys_prop.sw_nonhygro_ext , " ext_sw" );
678
678
prop.read ( phys_prop.sw_nonhygro_ssa , " ssa_sw" );
@@ -833,9 +833,9 @@ class PhysProp {
833
833
void aer_optics_log_rh (std::string name, const real1d& ext, const real1d& ssa, const real1d& asmin)
834
834
{
835
835
const int nrh_test = 36 ;
836
- int krh;
836
+ // int krh;
837
837
real1d rh_test (" rh_test" , nrh_test);
838
- auto nrh = ext.extent (0 );
838
+ // auto nrh = ext.extent(0);
839
839
840
840
parallel_for (SimpleBounds<1 > (nrh_test), YAKL_LAMBDA (int krh_test)
841
841
{
@@ -845,13 +845,15 @@ class PhysProp {
845
845
// loop through test rh values
846
846
parallel_for (SimpleBounds<1 > (nrh_test), YAKL_LAMBDA (int krh_test)
847
847
{
848
+ /*
848
849
// find corresponding rh index
849
850
auto rh = rh_test(krh_test);
850
851
auto krh = std::min(floor( (rh) * nrh ) + 1, static_cast<real>(nrh - 1));
851
852
auto wrh = (rh) *nrh - krh;
852
853
auto exti = ext(krh + 1) * (wrh + 1) - ext(krh) * wrh;
853
854
auto ssai = ssa(krh + 1) * (wrh + 1) - ssa(krh) * wrh;
854
855
auto asmi = asmin(krh + 1) * (wrh + 1) - asmin(krh) * wrh;
856
+ */
855
857
});
856
858
}
857
859
};
0 commit comments