/[escript]/trunk/escript/src/TestDomain.cpp
ViewVC logotype

Diff of /trunk/escript/src/TestDomain.cpp

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

revision 2808 by jfenwick, Thu Aug 27 04:54:41 2009 UTC revision 2809 by jfenwick, Mon Dec 7 03:39:37 2009 UTC
# Line 15  Line 15 
15  #include "DomainException.h"  #include "DomainException.h"
16  #include "TestDomain.h"  #include "TestDomain.h"
17  #include "Data.h"  #include "Data.h"
18    #include "Utils.h"  // for MPI functions
19    
20  namespace escript {  namespace escript {
21    
# Line 28  const int TestDomainFS=1;      // Null domai Line 29  const int TestDomainFS=1;      // Null domai
29  TestDomain::TestDomain(int pointspersample, int numsamples)  TestDomain::TestDomain(int pointspersample, int numsamples)
30      : m_samples(numsamples), m_dpps(pointspersample)      : m_samples(numsamples), m_dpps(pointspersample)
31  {  {
32    #ifdef PASO_MPI
33        int world=getMPISizeWorld();
34        int rank=getMPIRankWorld();
35        m_samples/=world;
36        if (rank<(numsamples%world))
37        {
38        m_samples++;
39        }
40    #endif
41      m_samplerefids=new int[numsamples];      m_samplerefids=new int[numsamples];
42      for (int i=0;i<numsamples;++i)      for (int i=0;i<numsamples;++i)
43      {      {

Legend:
Removed from v.2808  
changed lines
  Added in v.2809

  ViewVC Help
Powered by ViewVC 1.1.26