Skip to content

Commit

Permalink
Fix wrf init for moisture vars. (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi authored Feb 2, 2024
1 parent 06d77be commit 8d42c92
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/Initialization/ERF_init_from_wrfinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,13 @@ init_state_from_wrfinput (int lev,
if (moisture_type != MoistureType::None)
{
state_fab.template copy<RunOn::Device>(NC_QVAPOR_fab[idx], 0, RhoQ1_comp, 1);
state_fab.template plus<RunOn::Device>(NC_QCLOUD_fab[idx], 0, RhoQ1_comp, 1);
state_fab.template mult<RunOn::Device>(NC_rho_fab[idx] , 0, RhoQ1_comp, 1);

state_fab.template copy<RunOn::Device>(NC_QRAIN_fab[idx], 0, RhoQ2_comp, 1);
state_fab.template mult<RunOn::Device>(NC_rho_fab[idx] , 0, RhoQ2_comp, 1);
state_fab.template copy<RunOn::Device>(NC_QCLOUD_fab[idx], 0, RhoQ2_comp, 1);
state_fab.template mult<RunOn::Device>(NC_rho_fab[idx] , 0, RhoQ2_comp, 1);

state_fab.template copy<RunOn::Device>(NC_QRAIN_fab[idx], 0, RhoQ3_comp, 1);
state_fab.template mult<RunOn::Device>(NC_rho_fab[idx] , 0, RhoQ3_comp, 1);
}
} // idx
}
Expand Down

0 comments on commit 8d42c92

Please sign in to comment.