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

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

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

revision 1344 by ksteube, Wed Nov 14 02:48:02 2007 UTC revision 1345 by ksteube, Wed Nov 14 07:53:34 2007 UTC
# Line 127  void Finley_Mesh_write(Finley_Mesh *in,c Line 127  void Finley_Mesh_write(Finley_Mesh *in,c
127  }  }
128    
129  void Finley_PrintMesh_Info(Finley_Mesh *in, bool_t full) {  void Finley_PrintMesh_Info(Finley_Mesh *in, bool_t full) {
 #ifdef PASO_MPI  
130    int NN,i,j,numDim;    int NN,i,j,numDim;
131    Finley_TagMap* tag_map=in->TagMap;    Finley_TagMap* tag_map=in->TagMap;
132    
# Line 139  void Finley_PrintMesh_Info(Finley_Mesh * Line 138  void Finley_PrintMesh_Info(Finley_Mesh *
138    /* write nodes: */    /* write nodes: */
139    if (in->Nodes!=NULL) {    if (in->Nodes!=NULL) {
140      numDim=Finley_Mesh_getDim(in);      numDim=Finley_Mesh_getDim(in);
141      fprintf(stdout, "\tNodes->degreesOfFreedomDistribution:");      if (in->Nodes->degreesOfFreedomDistribution != NULL) {
142      for (j=0;j<in->MPIInfo->size+1;j++) fprintf(stdout," %d",in->Nodes->degreesOfFreedomDistribution->first_component[j]);        fprintf(stdout, "\tNodes->degreesOfFreedomDistribution:");
143      fprintf(stdout, "\n");        for (j=0;j<in->MPIInfo->size+1;j++) fprintf(stdout," %d",in->Nodes->degreesOfFreedomDistribution->first_component[j]);
144          fprintf(stdout, "\n");
145        }
146      fprintf(stdout, "\tNodes: %1dD-Nodes %d\n", numDim, in->Nodes->numNodes);      fprintf(stdout, "\tNodes: %1dD-Nodes %d\n", numDim, in->Nodes->numNodes);
147      if (full) {      if (full) {
148        fprintf(stdout, "\t     Id   Tag  gDOF   gNI grDfI  grNI:  Coordinates\n");        fprintf(stdout, "\t     Id   Tag  gDOF   gNI grDfI  grNI:  Coordinates\n");
# Line 224  void Finley_PrintMesh_Info(Finley_Mesh * Line 225  void Finley_PrintMesh_Info(Finley_Mesh *
225          tag_map=tag_map->next;          tag_map=tag_map->next;
226       }       }
227    }    }
 #else  
   fprintf(stdout, "Finley_PrintMesh_Info: MPI is not enabled\n");  
 #endif  
228  }  }
229    
230  /*  /*

Legend:
Removed from v.1344  
changed lines
  Added in v.1345

  ViewVC Help
Powered by ViewVC 1.1.26