/[escript]/branches/arrayview_from_1695_trunk/escript/src/Utils.cpp
ViewVC logotype

Annotation of /branches/arrayview_from_1695_trunk/escript/src/Utils.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 474 - (hide annotations)
Mon Jan 30 04:23:44 2006 UTC (13 years, 7 months ago) by jgs
Original Path: trunk/escript/src/Utils.cpp
File size: 1186 byte(s)
restructure escript source tree
move src/Data/* -> src
remove inc
modify #includes and cpppath settings accordingly

1 gross 391 /*
2     ******************************************************************************
3     * *
4     * COPYRIGHT ACcESS 2004 - All Rights Reserved *
5     * *
6     * This software is the property of ACcESS. No part of this code *
7     * may be copied in any form or by any means without the expressed written *
8     * consent of ACcESS. Copying, use or modification of this software *
9     * by any unauthorised person is illegal unless that person has a software *
10     * license agreement with ACcESS. *
11     * *
12     ******************************************************************************
13     */
14    
15 jgs 474 #include "Utils.h"
16 gross 391
17     namespace escript {
18    
19     void setNumberOfThreads(const int num_threads)
20     {
21    
22     #ifdef _OPENMP
23     omp_set_num_threads(num_threads);
24     #endif
25    
26     }
27    
28     int getNumberOfThreads()
29     {
30     #ifdef _OPENMP
31     return omp_get_max_threads();
32     #else
33     return 1;
34     #endif
35    
36     }
37    
38     } // end of namespace

  ViewVC Help
Powered by ViewVC 1.1.26