Changes between Initial Version and Version 1 of Documentation/UserGuide/flags


Ignore:
Timestamp:
2015-12-01T10:52:39+01:00 (8 years ago)
Author:
ajornet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/flags

    v1 v1  
     1Compilation flags let users change compiler's behaviour. For example, It can give you more information about an exception or it can apply more or less optimizations to the code. Be aware that each compiler has its own flags. 
     2 
     3 
     4Inside ../../util/AA_make.gdef you can modifify orchidee default flags. 
     5 
     6{{{ 
     7###-Q- lxiv8    F_O = -DCPP_PARA -O3 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) -fp-model precise 
     8#-Q- lxiv8    F_O = -DCPP_PARA -p -g -traceback -fp-stack-check -ftrapuv -check bounds $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) 
     9}}} 
     10* First line is for production mode. In this case It is commented. 
     11* Second line belongs to debug mode. 
     12 
     13In case you find non desired Nan in the code it is recommended to compile orchidee using the flag below. It triggers an exception instead of using Nan values. 
     14 
     15* -fpe0:  floating point error related with divided by zero. [http://fulla.fnal.gov/intel/compiler_f/main_for/fpops/fortran/fpops_fpew_f.htm More info] 
     16 
     17{{{ 
     18#-Q- lxiv8    F_O = -DCPP_PARA -p -g -fpe0 -traceback -fp-stack-check -ftrapuv -check bounds $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) 
     19}}} 
     20 
     21Note: if you modify this file you have to apply ins_make again. This way it spreads the changes to all Orchidee's folders. Then recompile from zero.