MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / fcall_overwrite_defaults

Function fcall_overwrite_defaults

src/script.cpp:422–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422static void fcall_overwrite_defaults( lk::invoke_t &cxt )
423{
424 LK_DOC( "overwrite_defaults", "Overwrite SAM default values file for the current configuration with current values.", "(none):boolean");
425 if (Case* c = CurrentCase()) {
426 c->EvaluateEquations();
427 cxt.result().assign(c->SaveDefaults(true));
428 }
429 else cxt.error("no active case");
430}
431
432static void fcall_list_technologies( lk::invoke_t &cxt )
433{

Callers

nothing calls this directly

Calls 4

CurrentCaseFunction · 0.85
EvaluateEquationsMethod · 0.80
assignMethod · 0.80
SaveDefaultsMethod · 0.80

Tested by

no test coverage detected