/[escript]/branches/domexper/finley/src/CPPAdapter/SystemMatrixAdapter.cpp
ViewVC logotype

Diff of /branches/domexper/finley/src/CPPAdapter/SystemMatrixAdapter.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 756 by jgs, Fri Jan 27 01:50:59 2006 UTC revision 757 by woo409, Mon Jun 26 13:12:56 2006 UTC
# Line 194  void SystemMatrixAdapter::nullifyRowsAnd Line 194  void SystemMatrixAdapter::nullifyRowsAnd
194    
195  void SystemMatrixAdapter::saveMM(const std::string& fileName) const  void SystemMatrixAdapter::saveMM(const std::string& fileName) const
196  {  {
197      char fName[fileName.size()+1];      char *fName = (fileName.size()+1>0) ? TMPMEMALLOC(fileName.size()+1,char) : (char*)NULL;
198      strcpy(fName,fileName.c_str());      
199        strcpy(fName,fileName.c_str());
200      Paso_SystemMatrix* mat = getPaso_SystemMatrix();      Paso_SystemMatrix* mat = getPaso_SystemMatrix();
201      Paso_SystemMatrix_saveMM(mat,fName);      Paso_SystemMatrix_saveMM(mat,fName);
202      checkPasoError();      checkPasoError();
203        TMPMEMFREE(fName);
204    
205  }  }
206    
207  void SystemMatrixAdapter::saveHB(const std::string& fileName) const  void SystemMatrixAdapter::saveHB(const std::string& fileName) const
208  {  {
209      char fName[fileName.size()+1];      char *fName = (fileName.size()+1>0) ? TMPMEMALLOC(fileName.size()+1,char) : (char*)NULL;
210    
211      strcpy(fName,fileName.c_str());      strcpy(fName,fileName.c_str());
212      Paso_SystemMatrix* mat = getPaso_SystemMatrix();      Paso_SystemMatrix* mat = getPaso_SystemMatrix();
213      Paso_SystemMatrix_saveHB(mat,fName);      Paso_SystemMatrix_saveHB(mat,fName);
214      checkPasoError();      checkPasoError();
215        TMPMEMFREE(fName);
216    
217  }  }
218    
219  void SystemMatrixAdapter::resetValues() const  void SystemMatrixAdapter::resetValues() const

Legend:
Removed from v.756  
changed lines
  Added in v.757

  ViewVC Help
Powered by ViewVC 1.1.26