Changes between Version 2 and Version 3 of Developers


Ignore:
Timestamp:
2012-07-03T11:46:38+02:00 (12 years ago)
Author:
luyssaert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developers

    v2 v3  
    2727[[BR]] 
    2828 
    29 = How to ... = 
     29= How to find a segmentation error = 
     30 
     31 
     32=== Compilation for checking array dimension === 
     33 
     34Segmentation errors indicate issues with the memory which are often caused by ill-defined array dimensions. The dimension of your arrays can be checked by changing the settings of the compiler. Note that compiling will take longer but that running the code will take a lot longer! Run the code on a single point test-case to avoid wasting computing resources. 
     35 
     36open the make file AA_make.gdef in the utility folder 
     37{{{ 
     38emacs ../util/AA_make.gdef 
     39}}} 
     40 
     41adjust the settings of the compiler by adding 'check bounds'. The example is for a compilation on obelix 
     42{{{ 
     43#-Q- lxiv8    F_O = -O -check bounds $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) 
     44}}} 
     45 
     46remove the previous make file 
     47{{{ 
     48./modeles/ORCHIDEE_OL/make clean 
     49}}} 
     50 
     51install the new make file with the 'check bounds' option 
     52{{{ 
     53./../../util/ins_make 
     54}}} 
     55 
     56and compile 
     57{{{ 
     58./../modeles/ORCHIDEE_OL/make 
     59}}} 
    3060 
    3161