Skip to content

Commit

Permalink
Additional comments only
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed Feb 7, 2025
1 parent 33179b7 commit 6e6b51a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/FlatDisk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void FlatDisk::initialize()
if (dump_basis) ortho->dump_basis(runtag);

// Set background model
if (conf["background"]) setBackground();
if (M0_back) setBackground();
}

FlatDisk::~FlatDisk(void)
Expand All @@ -121,8 +121,17 @@ FlatDisk::~FlatDisk(void)
void FlatDisk::setBackground()
{
try {

YAML::Node Params = conf["background"];
YAML::Node Params;

if (conf["background"]) Params = conf["background"];
else {
Params = conf["diskconf"];
if (myid==0) // Log file message
std::cout << "---- FlatDisk::setBackground: "
<< "M0_BACK set without a 'background' profile" << std::endl
<< "---- FlatDisk::setBackground: "
<< "using 'diskconf' for 'background' profile" << std::endl;
}

std::string name = Params["name"].as<std::string>();
auto params = Params["parameters"];
Expand Down

0 comments on commit 6e6b51a

Please sign in to comment.