/[escript]/branches/RW_WIN32/finley/src/CPPAdapter/MeshAdapterFactory.cpp
ViewVC logotype

Diff of /branches/RW_WIN32/finley/src/CPPAdapter/MeshAdapterFactory.cpp

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

revision 209 by robwdcock, Sun Nov 20 10:51:16 2005 UTC revision 210 by robwdcock, Wed Nov 23 09:54:02 2005 UTC
# Line 36  namespace finley { Line 36  namespace finley {
36      //      //
37      // create a copy of the filename to overcome the non-constness of call      // create a copy of the filename to overcome the non-constness of call
38      // to Finley_Mesh_read      // to Finley_Mesh_read
39      char fName[fileName.size()+1];      // Win32 refactor
40        char *fName = ((fileName.size()+1)>0) ? TMPMEMALLOC((fileName.size()+1),char) : (char*)NULL;
41      strcpy(fName,fileName.c_str());      strcpy(fName,fileName.c_str());
42      Finley_Mesh* fMesh=Finley_Mesh_read(fName,integrationOrder);      Finley_Mesh* fMesh=Finley_Mesh_read(fName,integrationOrder);
43      checkFinleyError();      checkFinleyError();
44      AbstractContinuousDomain* temp=new MeshAdapter(fMesh);      AbstractContinuousDomain* temp=new MeshAdapter(fMesh);
45        
46        /* win32 refactor */
47        TMPMEMFREE(fName);
48        
49      return temp;      return temp;
50    }    }
51    

Legend:
Removed from v.209  
changed lines
  Added in v.210

  ViewVC Help
Powered by ViewVC 1.1.26