nilsnevertree / CLEO-sdm-eurec4a

Clara Bayley's version of the superdroplet model. CLEO, short for Cleopatra and CLEO = Clouds in a Lagrangian Exascale mOdel
Other
0 stars 0 forks source link

Include the sdmonitor Observer of condensation in all builds. #38

Closed nilsnevertree closed 4 months ago

nilsnevertree commented 4 months ago

In order to incoorporate the new condensation observer create by Clara, this should be inplemented in the .cpp file.

template <typename Store>
inline Observer auto create_observer(const Config &config, const Timesteps &tsteps,
                                     Dataset<Store> &dataset) {
  const auto obsstep = tsteps.get_obsstep();
  const auto maxchunk = config.get_maxchunk();
  const auto ngbxs = config.get_ngbxs();

  const Observer auto obs_stats = RunStatsObserver(obsstep, config.get_stats_filename());

  const Observer auto obs_streamout = StreamOutObserver(realtime2step(240), &step2realtime);

  const Observer auto obs_time = TimeObserver(obsstep, dataset, maxchunk, &step2dimlesstime);

  const Observer auto obs_gindex = GbxindexObserver(dataset, maxchunk, ngbxs);

  const Observer auto obs_massmom = MassMomentsObserver(obsstep, dataset, maxchunk, ngbxs);

  const Observer auto obs_massmom_rain = MassMomentsRaindropsObserver(obsstep, dataset, maxchunk, ngbxs);

  const Observer auto obs_gbx = create_gridboxes_observer(obsstep, dataset, maxchunk, ngbxs);

  const Observer auto obs_sd = create_superdrops_observer(obsstep, dataset, maxchunk);

  const Observer auto obs_cond = MonitorCondensationObserver(obsstep, dataset, maxchunk, ngbxs);

  return obs_cond >> obs_sd >> obs_gbx >> obs_massmom_rain >> obs_massmom >> obs_gindex >> obs_time >> obs_streamout >> obs_stats;
}