Skip to content

Commit 6e6b51a

Browse files
author
Martin D. Weinberg
committed
Additional comments only
1 parent 33179b7 commit 6e6b51a

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

src/FlatDisk.cc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void FlatDisk::initialize()
109109
if (dump_basis) ortho->dump_basis(runtag);
110110

111111
// Set background model
112-
if (conf["background"]) setBackground();
112+
if (M0_back) setBackground();
113113
}
114114

115115
FlatDisk::~FlatDisk(void)
@@ -121,8 +121,17 @@ FlatDisk::~FlatDisk(void)
121121
void FlatDisk::setBackground()
122122
{
123123
try {
124-
125-
YAML::Node Params = conf["background"];
124+
YAML::Node Params;
125+
126+
if (conf["background"]) Params = conf["background"];
127+
else {
128+
Params = conf["diskconf"];
129+
if (myid==0) // Log file message
130+
std::cout << "---- FlatDisk::setBackground: "
131+
<< "M0_BACK set without a 'background' profile" << std::endl
132+
<< "---- FlatDisk::setBackground: "
133+
<< "using 'diskconf' for 'background' profile" << std::endl;
134+
}
126135

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

0 commit comments

Comments
 (0)