File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
115115FlatDisk::~FlatDisk (void )
@@ -121,8 +121,17 @@ FlatDisk::~FlatDisk(void)
121121void 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" ];
You can’t perform that action at this time.
0 commit comments