@@ -183,6 +183,7 @@ void AtmProcDAG::write_dag (const std::string& fname, const int verbosity) const
183
183
ofile << " strict digraph G {\n "
184
184
<< " rankdir=\" LR\"\n " ;
185
185
186
+ bool has_IC_field = false ;
186
187
for (const auto & n : m_nodes) {
187
188
const auto & unmet = m_unmet_deps.at (n.id );
188
189
@@ -268,10 +269,11 @@ void AtmProcDAG::write_dag (const std::string& fname, const int verbosity) const
268
269
}
269
270
fc += " \" > " ;
270
271
ofile << " <tr><td align=\" left\" >" << fc << html_fix (print_fid (m_fids[fid],fid_verb));
271
- if (ekat::contains (m_unmet_deps. at (n. id ) , fid)) {
272
+ if (ekat::contains (unmet , fid)) {
272
273
ofile << " <b> *** MISSING ***</b>" ;
273
- } else if (ekat::contains (m_unmet_deps. at (n. id ) , -fid)) {
274
+ } else if (ekat::contains (unmet , -fid)) {
274
275
ofile << " <b> (Init. Cond.)</b>" ;
276
+ has_IC_field = true ;
275
277
}
276
278
ofile << " </font></td></tr>\n " ;
277
279
}
@@ -339,7 +341,7 @@ void AtmProcDAG::write_dag (const std::string& fname, const int verbosity) const
339
341
fc += (ekat::contains (unmet,gr_fid) ? " red" : " black" );
340
342
fc += " \" > " ;
341
343
ofile << " <tr><td align=\" left\" >" << fc << html_fix (print_fid (m_fids[gr_fid],fid_verb));
342
- if (ekat::contains (m_unmet_deps. at (n. id ), gr_fid)) {
344
+ if (ekat::contains (unmet, gr_fid)) {
343
345
ofile << " <b> *** MISSING ***</b>" ;
344
346
}
345
347
ofile << " </font></td></tr>\n " ;
@@ -407,6 +409,24 @@ void AtmProcDAG::write_dag (const std::string& fname, const int verbosity) const
407
409
<< " ];\n " ;
408
410
}
409
411
412
+ if (m_IC_processed && has_IC_field) {
413
+ int this_node_id = m_nodes.size () + 1 ;
414
+ ofile << this_node_id << " [\n "
415
+ << " shape=box\n "
416
+ << " color=\" #605d57\"\n "
417
+ << " fontcolor=\" #031576\"\n "
418
+ << " penwidth=8\n "
419
+ << " fontsize=40\n "
420
+ << " style=filled\n "
421
+ << " fillcolor=\" #cccccc\"\n "
422
+ << " align=\" center\"\n "
423
+ << " label=<<b><font color=\" #3d2906\" >NOTE:</font> Fields denoted "
424
+ " with <font color=\" #006219\" ><b>green text</b></font> "
425
+ " <br align=\" center\" />indicate the field was provided by the "
426
+ " <br align=\" center\" />initial conditions and never updated</b>>\n "
427
+ << " ];\n " ;
428
+ }
429
+
410
430
// Close the file
411
431
ofile << " }" ;
412
432
ofile.close ();
0 commit comments