/[escript]/trunk/escriptcore/src/EscriptParams.cpp
ViewVC logotype

Diff of /trunk/escriptcore/src/EscriptParams.cpp

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

revision 5336 by jfenwick, Wed Dec 10 05:23:51 2014 UTC revision 5339 by sshaw, Thu Dec 11 00:08:58 2014 UTC
# Line 20  Line 20 
20  #include <boost/python/tuple.hpp>  #include <boost/python/tuple.hpp>
21  #include <cmath>                        // to test if we know how to check for nan  #include <cmath>                        // to test if we know how to check for nan
22    
23    #include "esysUtils/EsysException.h"
24  #include "esysUtils/Esys_MPI.h"  #include "esysUtils/Esys_MPI.h"
25    
26  namespace escript  namespace escript
# Line 176  EscriptParams::getInt(const char* name, Line 176  EscriptParams::getInt(const char* name,
176  void  void
177  EscriptParams::setInt(const char* name, int value)  EscriptParams::setInt(const char* name, int value)
178  {  {
179     if (!strcmp(name,"TOO_MANY_LINES"))     // Note: there is no way to modify the LAPACK_SUPPORT variable ATM
180     {      if (!strcmp(name,"TOO_MANY_LINES"))
181          too_many_lines=value;          too_many_lines=value;
182     }      else if (!strcmp(name,"AUTOLAZY"))
    if (!strcmp(name,"AUTOLAZY"))  
    {  
183          autolazy=!(value==0);        // set to 1 or zero          autolazy=!(value==0);        // set to 1 or zero
184     }      else if (!strcmp(name,"TOO_MANY_LEVELS"))
    if (!strcmp(name,"TOO_MANY_LEVELS"))  
    {  
185          too_many_levels=value;          too_many_levels=value;
186     }      else if (!strcmp(name,"RESOLVE_COLLECTIVE"))
    if (!strcmp(name,"RESOLVE_COLLECTIVE"))  
    {  
187          resolve_collective=value;          resolve_collective=value;
188     }      else if (!strcmp(name,"LAZY_STR_FMT"))
    if (!strcmp(name,"LAZY_STR_FMT"))  
    {  
189          lazy_str_fmt=value;          lazy_str_fmt=value;
190     }      else if (!strcmp(name,"LAZY_VERBOSE"))
    if (!strcmp(name,"LAZY_VERBOSE"))  
    {  
191          lazy_verbose=value;          lazy_verbose=value;
192     }      else
193     // Note: there is no way to modify the LAPACK_SUPPORT variable ATM         throw esysUtils::EsysException("Invalid parameter name");
194  }  }
195    
196  void  void

Legend:
Removed from v.5336  
changed lines
  Added in v.5339

  ViewVC Help
Powered by ViewVC 1.1.26