Skip to content

Commit 54f5e1a

Browse files
committed
remove 2 intermediate DAGs
1 parent 942b07b commit 54f5e1a

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

components/eamxx/src/control/atmosphere_driver.cpp

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -238,20 +238,6 @@ void AtmosphereDriver::create_atm_processes()
238238
stop_timer("EAMxx::create_atm_processes");
239239
stop_timer("EAMxx::init");
240240
m_atm_logger->info("[EAMxx] create_atm_processes ... done!");
241-
242-
auto &driver_options_pl = m_atm_params.sublist("driver_options");
243-
const int verb_lvl =
244-
driver_options_pl.get<int>("atmosphere_dag_verbosity_level", -1);
245-
if (verb_lvl > 0) {
246-
// create an initial DAG with only atm_process nodes
247-
AtmProcDAG dag;
248-
// First, add all atm processes
249-
dag.init_atm_proc_nodes(*m_atm_process_group);
250-
// Write a dot file for visualization
251-
if (m_atm_comm.am_i_root()) {
252-
dag.write_dag("scream_atm_createProc_dag.dot", std::max(verb_lvl, 0));
253-
}
254-
}
255241
}
256242

257243
void AtmosphereDriver::create_grids()
@@ -706,10 +692,8 @@ void AtmosphereDriver::create_fields()
706692
// NOTE: at this point, fields provided by initial conditions may (will)
707693
// appear as unmet dependencies
708694
AtmProcDAG dag;
709-
710695
// First, add all atm processes
711696
dag.create_dag(*m_atm_process_group);
712-
713697
// Write a dot file for visualization
714698
if (m_atm_comm.am_i_root()) {
715699
dag.write_dag("scream_atm_createField_dag.dot", std::max(verb_lvl,0));
@@ -889,31 +873,6 @@ initialize_fields ()
889873
TraceGasesWorkaround::singleton().run_type = m_run_type;
890874
}
891875

892-
// See if we need to print a DAG. We do this first, cause if any input
893-
// field is missing from the initial condition file, an error will be thrown.
894-
// By printing the DAG first, we give the user the possibility of seeing
895-
// what fields are inputs to the atm time step, so he/she can fix the i.c. file.
896-
// TODO: would be nice to do the IC input first, and mark the fields in the
897-
// DAG node "Begin of atm time step" in red if there's no initialization
898-
// mechanism set for them. That is, allow field XYZ to not be found in
899-
// the IC file, and throw an error when the dag is created.
900-
901-
auto& driver_options_pl = m_atm_params.sublist("driver_options");
902-
const int verb_lvl = driver_options_pl.get<int>("atmosphere_dag_verbosity_level",-1);
903-
if (verb_lvl>0) {
904-
// generate the full DAG, resolving any spurious unmet dependencies that
905-
// may be provided by initial conditions
906-
AtmProcDAG dag;
907-
// First, add all atm processes
908-
dag.create_dag(*m_atm_process_group);
909-
// process the initial conditions to maybe fulfill unmet dependencies
910-
dag.process_initial_conditions(m_fields_inited);
911-
// Write a dot file for visualization
912-
if (m_atm_comm.am_i_root()) {
913-
dag.write_dag("scream_atm_initField_dag.dot", std::max(verb_lvl,0));
914-
}
915-
}
916-
917876
// Initialize fields
918877
if (m_run_type==RunType::Restart) {
919878
restart_model ();

0 commit comments

Comments
 (0)