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

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

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

trunk/finley/src/Finley_Mesh_optimizeNodeLabeling.c revision 1156 by gross, Mon May 21 06:45:14 2007 UTC trunk/finley/src/Mesh_optimizeNodeLabeling.c revision 1163 by gross, Wed May 23 23:56:39 2007 UTC
# Line 30  void Finley_Mesh_optimizeNodeLabeling(Fi Line 30  void Finley_Mesh_optimizeNodeLabeling(Fi
30     index_t *DOF_permutation=NULL, i;     index_t *DOF_permutation=NULL, i;
31  /*  /*
32     Paso_SystemMatrixPattern* pattern_p=NULL;     Paso_SystemMatrixPattern* pattern_p=NULL;
33     pattern_p=Finley_getPattern(mesh_p,FALSE,FALSE)     pattern_p=Finley_getPattern(mesh_p,FALSE,FALSE);
   
    DOF_permutation= ();  
34     if no error {     if no error {
35          #pragma omp for private(i)         XXX=pattern_p. ;
36          for (i=0;i< ;++i) {         DOF_permutation=MEMALLOC(XXX, index_t);
37           availbale=MEMALLOC(XXX, index_t);
38           #pragma omp for private(i)
39           for (i=0;i< ;++i) {
40             DOF_permutation[i]=i;             DOF_permutation[i]=i;
41          }         }
42           first_available_node=0;
43           while (first_available_node <= XXX) {
44                // get an available node with minimum number of naighbours
45                max_level_size=XXX;
46                root=...
47                // get the leveling string from root
48                num_levels_tmp=1;
49                num_nodes_in_level_tmp[0]=0;
50                levels_tmp[];
51                // get maximum level size
52                max_level_size_tmp=MAX(num_nodes_in_level_tmp[i+1]-num_nodes_in_level_tmp[i], max_level_size_tmp);
53                // use new leveling if
54                if (max_level_size_tmp<max_level_size) {
55                    max_level_size=max_level_size_tmp;
56                    num_levels=num_levels_tmp;
57                    num_nodes_in_level=num_nodes_in_level_tmp;
58                }
59                
60                
61                
62           }
63     }     }
64  */  */
65  }  }

Legend:
Removed from v.1156  
changed lines
  Added in v.1163

  ViewVC Help
Powered by ViewVC 1.1.26