Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ASinanSaglam committed Apr 25, 2022
1 parent 23fa195 commit a8d6e93
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/NFinput/NFinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ System * NFinput::initializeFromXML(
//(we do not enforce that functions must exist... yet) if(!pListOfFunctions) { cout<<"\tNo 'ListOfParameters' tag found. Quitting."; delete s; return NULL; }
TiXmlElement *pListOfMoleculeTypes = pListOfParameters->NextSiblingElement("ListOfMoleculeTypes");
if(!pListOfMoleculeTypes) { cout<<"\tNo 'ListOfMoleculeTypes' tag found. Quitting."; delete s; return NULL; }
// we need to quit if we have compartments
TiXmlElement *pListOfCompartments = pListOfParameters->NextSiblingElement("ListOfCompartments");
if(pListOfCompartments) {
// check to see if we have compartments
TiXmlElement *pCompElement;
pCompElement = pListOfCompartments->FirstChildElement("compartment");
if (pCompElement) {
cout<<"\tCompartments aren't supported in NFsim. Quitting."; delete s; return NULL;
}
}
TiXmlElement *pListOfSpecies = pListOfMoleculeTypes->NextSiblingElement("ListOfSpecies");
if(!pListOfSpecies) { cout<<"\tNo 'ListOfSpecies' tag found. Quitting."; delete s; return NULL; }
TiXmlElement *pListOfReactionRules = pListOfSpecies->NextSiblingElement("ListOfReactionRules");
Expand Down

0 comments on commit a8d6e93

Please sign in to comment.