Skip to content

Commit

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


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 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 All @@ -38,7 +34,6 @@ void Basis::readXML(XMLfileUnits& xmlconfig) {
Log::global_log->error() << "[Basis] No componentid specified. Set <componentid>!" << std::endl;
Simulation::exit(1);
}
std::cout << "BASIS ComponentID " << componentid << " of total " << numComps << std::endl;
molecule.setComponent(ensemble->getComponent(componentid - 1)); // Internally stored in vector starting at index 0
double r[3];
Coordinate3D sitePosition(xmlconfig, "coordinate");
Expand Down
2 changes: 0 additions & 2 deletions src/utils/generator/GridFiller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,10 @@ 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 c243c52

Please sign in to comment.