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

Diff of /trunk/finley/src/CPPAdapter/MeshAdapterFactory.cpp

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

revision 1347 by ksteube, Fri Nov 16 05:37:07 2007 UTC revision 1360 by ksteube, Thu Dec 13 05:05:00 2007 UTC
# Line 486  namespace finley { Line 486  namespace finley {
486      return temp;      return temp;
487    }    }
488    
489      AbstractContinuousDomain* readMeshMPI(const std::string& fileName,
490                         int integrationOrder,
491                                         int reducedIntegrationOrder,
492                                         int optimize)
493      {
494        //
495        // create a copy of the filename to overcome the non-constness of call
496        // to Finley_Mesh_read
497        Finley_Mesh* fMesh=0;
498        // Win32 refactor
499        char *fName = ((fileName.size()+1)>0) ? TMPMEMALLOC((fileName.size()+1),char) : (char*)NULL;
500        strcpy(fName,fileName.c_str());
501        double blocktimer_start = blocktimer_time();
502    
503        fMesh=Finley_Mesh_read_MPI(fName,integrationOrder, reducedIntegrationOrder, (optimize ? TRUE : FALSE));
504        checkFinleyError();
505        AbstractContinuousDomain* temp=new MeshAdapter(fMesh);
506        
507        /* win32 refactor */
508        TMPMEMFREE(fName);
509        
510        blocktimer_increment("ReadMesh()", blocktimer_start);
511        return temp;
512      }
513    
514    AbstractContinuousDomain* readGmsh(const std::string& fileName,    AbstractContinuousDomain* readGmsh(const std::string& fileName,
515                                       int numDim,                                       int numDim,
516                                       int integrationOrder,                                       int integrationOrder,

Legend:
Removed from v.1347  
changed lines
  Added in v.1360

  ViewVC Help
Powered by ViewVC 1.1.26