Index: ../trunk-jpl/src/c/classes/FemModel.cpp
===================================================================
--- ../trunk-jpl/src/c/classes/FemModel.cpp	(revision 18936)
+++ ../trunk-jpl/src/c/classes/FemModel.cpp	(revision 18937)
@@ -198,8 +198,10 @@
 	pfclose(toolkitsoptionsfid,toolkitsfilename);
 
 	/*Open output file once for all and add output file descriptor to parameters*/
-	output_fid=pfopen(outputfilename,"wb");
-	this->parameters->SetParam(output_fid,OutputFilePointerEnum);
+	if(!trace){
+		output_fid=pfopen(outputfilename,"wb");
+		this->parameters->SetParam(output_fid,OutputFilePointerEnum);
+	}
 	
 	/*Now save all of these file names into parameters, you never know when you might need them: */
 	this->parameters->AddObject(new StringParam(ToolkitsFileNameEnum,toolkitsfilename));
@@ -324,7 +326,7 @@
 	/*Figure out which solution core we are going to run with the current solution type: */
 	WrapperCorePointerFromSolutionEnum(&solutioncore,this->parameters,solution_type);
 
-	/*run solutoin core: */
+	/*run solution core: */
 	profiler->Tag(StartCore);   
 	solutioncore(this); 
 	profiler->Tag(FinishCore);
