From a2857dc4f962090947c64a95c8c6cdd726206611 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 16 Jun 2011 16:48:54 +0000 Subject: [PATCH] batchmode fixes --- ng/ng.tcl | 4 ++-- ng/ngappinit.cpp | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ng/ng.tcl b/ng/ng.tcl index efd9ab00..848c98fd 100644 --- a/ng/ng.tcl +++ b/ng/ng.tcl @@ -89,8 +89,8 @@ if { [catch { load libgeom2dvis[info sharedlibextension] Ng_Geom2d } result ] } puts "error: $result" } -source ${ngdir}/csgeom.tcl -source ${ngdir}/stlgeom.tcl +catch { source ${ngdir}/csgeom.tcl } +catch { source ${ngdir}/stlgeom.tcl } set hasocc no catch { source ${ngdir}/occgeom.tcl } diff --git a/ng/ngappinit.cpp b/ng/ngappinit.cpp index a08f9ba1..baa3abda 100644 --- a/ng/ngappinit.cpp +++ b/ng/ngappinit.cpp @@ -175,6 +175,10 @@ int main(int argc, char ** argv) if(parameters.GetDefineFlag("batchmode")) nodisplay = true; + if(parameters.GetDefineFlag("solve")) + nodisplay = true; + + if(parameters.GetDefineFlag("shellmode")) {