Skip to content

Commit

Permalink
Add further debug
Browse files Browse the repository at this point in the history
  • Loading branch information
HomesGH authored Jun 4, 2024
1 parent a3e3c14 commit cd0c330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/generator/Basis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@


void Basis::readXML(XMLfileUnits& xmlconfig) {
Log::global_log->info() << "Start reading BASIS" << std::endl;
XMLfile::Query query = xmlconfig.query("site");
Ensemble* ensemble = _simulation.getEnsemble();
std::string oldpath = xmlconfig.getcurrentnodepath();
Log::global_log->info() << "Start BASIS getComps" << std::endl;
const size_t numComps = ensemble->getComponents()->size();
for(auto siteIter = query.begin(); siteIter; siteIter++) {
std::cout << "BASIS Start reading" << std::endl;
std::cout << "BASIS Start reading loop" << std::endl;
Molecule molecule;
xmlconfig.changecurrentnode(siteIter);
int componentid;
Log::global_log->info() << "Start BASIS read componentid" << std::endl;
if (xmlconfig.getNodeValue("componentid", componentid)) {
if ((componentid < 1) || (componentid > numComps)) {
Log::global_log->error() << "[Basis] Specified componentid is invalid. Valid range: 1 <= componentid <= " << numComps << std::endl;
Expand Down
2 changes: 2 additions & 0 deletions src/utils/generator/GridFiller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ void GridFiller::init() {

void GridFiller::readXML(XMLfileUnits& xmlconfig) {
using std::endl;
Log::global_log->info() << "Start reading lattice" << std::endl;
if(xmlconfig.changecurrentnode("lattice")) {
_lattice.readXML(xmlconfig);
xmlconfig.changecurrentnode("..");
}
Log::global_log->info() << "END reading lattice" << std::endl;
if(xmlconfig.changecurrentnode("basis")) {
_basis.readXML(xmlconfig);
xmlconfig.changecurrentnode("..");
Expand Down

0 comments on commit cd0c330

Please sign in to comment.