Skip to content

Commit

Permalink
fixes CFD-GO#101
Browse files Browse the repository at this point in the history
  • Loading branch information
mdzik committed Dec 16, 2016
1 parent a856a2f commit 7da953b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Handlers/MainContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ int MainContainer::Init () {
GenericAction::Init();
char filename[STRING_LEN];
solver->outIterFile("config", ".xml", filename);
pugi::xml_node n = solver->configfile.append_child("Run");
pugi::xml_node n = solver->configfile.child("CLBConfig").append_child("Run");
n.append_attribute("model").set_value(MODEL);
pugi::xml_node c = n.append_child("Code");
c.append_attribute("version").set_value(VERSION);
Expand Down
4 changes: 3 additions & 1 deletion src/Handlers/vHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ vHandler * getHandler(pugi::xml_node node) {
ret = new conControlParameter;
} else if (name=="SyntheticTurbulence") {
ret = new acSyntheticTurbulence;
} else {
} else if (name=="Run") {
output("Skipping 'Run' element");
}else {
ERROR("Unknown element '%s'\n", node.name());
return NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion src/config.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
OPT = @CPPFLAGS@
CPP_OPT = -Wno-write-strings @CPP_OPT@
LD_OPT = @LDFLAGS@ @LIBS@
NV_OPT = @NVFLAGS@
NV_OPT = -D_FORCE_INLINES @NVFLAGS@
CPU = @CROSS_CPU@

PV_SOURCE = @PV_SOURCE@
Expand Down

0 comments on commit 7da953b

Please sign in to comment.