/*--------------------------------*- C++ -*----------------------------------*\
  ==  == ====== ====   ====    |
                    \\     ||  | Multiphase Code Repository by HZDR
  ======   //   ||  || ===//   | Website: https://doi.org/10.14278/rodare.767
  ||  ||  //    ||  // || \\   | License: GPL-3.0-or-later
  ==  == ====== ====   ==  ==  |
-------------------------------------------------------------------------------
Description
    Write courant number field for specified flux and density fields at
    writeTime. Additionally, write out all fields, when the criterion for Co is
    met.

\*---------------------------------------------------------------------------*/

type                    addonCourantNo;
libs                    ("libaddonFieldFunctionObjects.so");

field                   phi;
rho                     rho;
critWrite               true;
criterion               0.75;

writeControl            writeTime;
result                  Co;

// ************************************************************************* //
