/[escript]/trunk/weipa/src/EscriptDataset.cpp
ViewVC logotype

Diff of /trunk/weipa/src/EscriptDataset.cpp

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

revision 3791 by caltinay, Tue Oct 11 03:59:40 2011 UTC revision 3792 by caltinay, Wed Feb 1 06:16:25 2012 UTC
# Line 17  Line 17 
17  #include <weipa/FileWriter.h>  #include <weipa/FileWriter.h>
18  #include <weipa/FinleyDomain.h>  #include <weipa/FinleyDomain.h>
19  #include <weipa/NodeData.h>  #include <weipa/NodeData.h>
20    #include <weipa/RipleyDomain.h>
21    
22  #ifndef VISIT_PLUGIN  #ifndef VISIT_PLUGIN
23  #include <escript/Data.h>  #include <escript/Data.h>
24  #include <dudley/CppAdapter/MeshAdapter.h>  #include <dudley/CppAdapter/MeshAdapter.h>
25  #include <finley/CppAdapter/MeshAdapter.h>  #include <finley/CppAdapter/MeshAdapter.h>
26    #include <ripley/RipleyDomain.h>
27  #endif  #endif
28    
29  #include <cstring>  #include <cstring>
# Line 109  bool EscriptDataset::setDomain(const esc Line 111  bool EscriptDataset::setDomain(const esc
111              if (dom->initFromEscript(domain)) {              if (dom->initFromEscript(domain)) {
112                  if (mpiSize > 1)                  if (mpiSize > 1)
113                      dom->reorderGhostZones(mpiRank);                      dom->reorderGhostZones(mpiRank);
114                    domainChunks.push_back(dom);
115                } else {
116                    cerr << "Error initializing domain!" << endl;
117                    myError = 2;
118                }
119            } else if (dynamic_cast<const ripley::RipleyDomain*>(domain)) {
120                DomainChunk_ptr dom(new RipleyDomain());
121                if (dom->initFromEscript(domain)) {
122                    if (mpiSize > 1)
123                        dom->reorderGhostZones(mpiRank);
124                  domainChunks.push_back(dom);                  domainChunks.push_back(dom);
125              } else {              } else {
126                  cerr << "Error initializing domain!" << endl;                  cerr << "Error initializing domain!" << endl;

Legend:
Removed from v.3791  
changed lines
  Added in v.3792

  ViewVC Help
Powered by ViewVC 1.1.26