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")) {