klindsay28 / Newton-Krylov_OOC

An Out-of-Core Newton-Krylov Solver
3 stars 2 forks source link

generalize extraction of tavg_freq_opt_0 in cime_pop #18

Closed klindsay28 closed 4 years ago

klindsay28 commented 4 years ago

implement _pop_nl_var_exists, perhaps

    cmd = ["grep", "^ *" + var_name + " *=", nl_fname]
    return subprocess.call(cmd) == 0

use _pop_nl_var_exists("tavg_freq_opt(1)") to check for that specification of tavg_freq_opt_0