/[escript]/trunk/finley/src/Mesh_createNodeFileMappings.c
ViewVC logotype

Diff of /trunk/finley/src/Mesh_createNodeFileMappings.c

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

revision 1326 by ksteube, Mon Oct 1 08:10:41 2007 UTC revision 1347 by ksteube, Fri Nov 16 05:37:07 2007 UTC
# Line 211  void Mesh_createDOFMappingAndCoupling(Fi Line 211  void Mesh_createDOFMappingAndCoupling(Fi
211    
212    }    }
213  }  }
214    
215    void Finley_Mesh_createMappings(Finley_Mesh* mesh, index_t* distribution) {
216      int i;
217      index_t *maskReducedNodes=NULL, *indexReducedNodes=NULL;
218      dim_t numReducedNodes;
219    
220      maskReducedNodes=TMPMEMALLOC(mesh->Nodes->numNodes,index_t);
221      indexReducedNodes=TMPMEMALLOC(mesh->Nodes->numNodes,index_t);
222    
223      if (! ( Finley_checkPtr(maskReducedNodes) || Finley_checkPtr(indexReducedNodes) ) ) {
224        #pragma omp parallel for private(i) schedule(static)
225        for (i=0;i<mesh->Nodes->numNodes;++i) maskReducedNodes[i]=-1;
226        Finley_Mesh_markNodes(maskReducedNodes,0,mesh,TRUE);
227        numReducedNodes=Finley_Util_packMask(mesh->Nodes->numNodes,maskReducedNodes,indexReducedNodes);
228        if (Finley_noError()) Finley_Mesh_createNodeFileMappings(mesh,numReducedNodes,indexReducedNodes,distribution);
229      }
230    
231      TMPMEMFREE(maskReducedNodes);
232      TMPMEMFREE(indexReducedNodes);
233    }
234    
235  void Finley_Mesh_createNodeFileMappings(Finley_Mesh* in, dim_t numReducedNodes, index_t* indexReducedNodes, index_t* dof_first_component) {  void Finley_Mesh_createNodeFileMappings(Finley_Mesh* in, dim_t numReducedNodes, index_t* indexReducedNodes, index_t* dof_first_component) {
236    
237    

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

  ViewVC Help
Powered by ViewVC 1.1.26