/[escript]/trunk/escript/src/Utils.h
ViewVC logotype

Diff of /trunk/escript/src/Utils.h

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

revision 2308 by gross, Mon Mar 16 01:20:56 2009 UTC revision 2799 by jfenwick, Thu Dec 3 01:35:08 2009 UTC
# Line 1  Line 1 
1    
2  /*******************************************************  /*******************************************************
3  *  *
4  * Copyright (c) 2003-2008 by University of Queensland  * Copyright (c) 2003-2009 by University of Queensland
5  * Earth Systems Science Computational Center (ESSCC)  * Earth Systems Science Computational Center (ESSCC)
6  * http://www.uq.edu.au/esscc  * http://www.uq.edu.au/esscc
7  *  *
# Line 26  namespace escript { Line 26  namespace escript {
26    
27    /**    /**
28       \brief       \brief
29       return the latest SVN version number       return the SVN version number used to build this version.
30         \warning Only gives accurate answers for clean checkouts
31    */    */
32    ESCRIPT_DLL_API int getSvnVersion();    ESCRIPT_DLL_API int getSvnVersion();
33    
# Line 39  namespace escript { Line 40  namespace escript {
40    /**    /**
41       \brief       \brief
42       set the number of threads       set the number of threads
43         \warning Use of this method is strongly discouraged. It may be deprecated in future.
44    */    */
45    ESCRIPT_DLL_API void setNumberOfThreads(const int num_threads);    ESCRIPT_DLL_API void setNumberOfThreads(const int num_threads);
46    
# Line 65  namespace escript { Line 67  namespace escript {
67    */    */
68    ESCRIPT_DLL_API int getMPIWorldMax(const int val);    ESCRIPT_DLL_API int getMPIWorldMax(const int val);
69    
70      /**
71         \brief returns sum of an integer over all processors with MPI_COMM_WORLD
72      */
73      ESCRIPT_DLL_API int getMPIWorldSum(const int val);
74    
75      /**
76        \brief performs a barrier synchronization across all processors.
77      */
78    
79      ESCRIPT_DLL_API void MPIBarrierWorld();
80    
81   /**   /**
82      \brief      \brief
83      returns machine precision      returns machine precision
# Line 76  namespace escript { Line 89  namespace escript {
89   */   */
90   ESCRIPT_DLL_API double getMaxFloat();   ESCRIPT_DLL_API double getMaxFloat();
91    
92     ESCRIPT_DLL_API
93     void
94     saveDataCSV(const std::string& filename, boost::python::dict arg, const std::string& sep, const std::string& csep,
95    bool append=false);
96    
97    
98     /**
99     Resolve a collection of Data objects together now.
100     To get performance improvements, the objects will need to have the same function space and share Dag components.
101     \param obj A python list or tuple of Data objects to be resolved together.
102    
103     */
104     ESCRIPT_DLL_API
105     void
106     resolveGroup(boost::python::object obj);
107    
108  } // end of namespace  } // end of namespace
109  #endif  #endif

Legend:
Removed from v.2308  
changed lines
  Added in v.2799

  ViewVC Help
Powered by ViewVC 1.1.26