/[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 1989 by jfenwick, Mon Oct 13 00:18:55 2008 UTC revision 1990 by ksteube, Fri Nov 7 04:19:07 2008 UTC
# Line 52  namespace finley { Line 52  namespace finley {
52    Domain_ptr loadMesh(const std::string& fileName)    Domain_ptr loadMesh(const std::string& fileName)
53    {    {
54  #ifdef USE_NETCDF  #ifdef USE_NETCDF
     bool optimize=FALSE; // Don't optimize since this would cause problems with Data().dump()  
55      Paso_MPIInfo *mpi_info = Paso_MPIInfo_alloc( MPI_COMM_WORLD );      Paso_MPIInfo *mpi_info = Paso_MPIInfo_alloc( MPI_COMM_WORLD );
56      AbstractContinuousDomain* temp;      AbstractContinuousDomain* temp;
57      Finley_Mesh *mesh_p=NULL;      Finley_Mesh *mesh_p=NULL;
# Line 448  namespace finley { Line 447  namespace finley {
447          }          }
448        }        }
449      }      }
450      
451            if (Finley_noError()) Finley_Mesh_createMappings(mesh_p, first_DofComponent, first_NodeComponent);
452            TMPMEMFREE(first_DofComponent);
453            TMPMEMFREE(first_NodeComponent);
454    
455      } /* Finley_noError() after Finley_Mesh_alloc() */      } /* Finley_noError() after Finley_Mesh_alloc() */
     
     if (Finley_noError()) Finley_Mesh_createMappings(mesh_p, first_DofComponent, first_NodeComponent);  
     TMPMEMFREE(first_DofComponent);  
     TMPMEMFREE(first_NodeComponent);  
456    
457      checkFinleyError();      checkFinleyError();
458      temp=new MeshAdapter(mesh_p);      temp=new MeshAdapter(mesh_p);

Legend:
Removed from v.1989  
changed lines
  Added in v.1990

  ViewVC Help
Powered by ViewVC 1.1.26