/[escript]/branches/arrexp_2137_win_merge/escript/src/Data.cpp
ViewVC logotype

Diff of /branches/arrexp_2137_win_merge/escript/src/Data.cpp

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

revision 2221 by jfenwick, Mon Jan 19 06:11:25 2009 UTC revision 2222 by jfenwick, Tue Jan 20 04:52:39 2009 UTC
# Line 38  extern "C" { Line 38  extern "C" {
38  #include <boost/python/dict.hpp>  #include <boost/python/dict.hpp>
39  #include <boost/python/extract.hpp>  #include <boost/python/extract.hpp>
40  #include <boost/python/long.hpp>  #include <boost/python/long.hpp>
   
41  #include "WrappedArray.h"  #include "WrappedArray.h"
42    
43  using namespace std;  using namespace std;
# Line 823  Data::resolve() Line 822  Data::resolve()
822    }    }
823  }  }
824    
825    void
826    Data::requireWrite()
827    {
828    //   if (omp_in_parallel())
829    //   {
830    //  throw DataException("Programming error. Please do not run requireWrite() in multi-threaded sections.");
831    //   }
832      resolve();
833      exclusiveWrite();
834    }
835    
836  Data  Data
837  Data::oneOver() const  Data::oneOver() const

Legend:
Removed from v.2221  
changed lines
  Added in v.2222

  ViewVC Help
Powered by ViewVC 1.1.26