Index: LMDZ4/branches/V3_test/makegcm
===================================================================
--- LMDZ4/branches/V3_test/makegcm	(revision 731)
+++ LMDZ4/branches/V3_test/makegcm	(revision 732)
@@ -283,8 +283,10 @@
 #################
 else if $X8BRODIE then
-#################
+##################
    set optdbl='-dw -Wf\"-A dbl4\"'  
-   set optim90=' -clear -float0 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume "'
-   set optimtru90=' -clear -f4 -float0 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R2 -R3 -R4 -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume"'
+#   set optim90='-P stack -Wf,-pvctl res=whole,-A dbl4,-init stack=nan,-init heap=nan,-ptr byte -EP -R5 -float0 -dw -Wf,"-pvctl loopcnt=999999 fullmsg noassume" -I/SX/usr/include'
+   set optim90='-P stack -Wf,-pvctl res=whole,-A dbl4,-ptr byte -EP -R5 -float0 -dw -Wf,"-pvctl loopcnt=999999 fullmsg noassume" -I/SX/usr/include'
+   set optimtru90="$optim90"
+   set optim90="$optim90"
    set optim="$optim90"
    set optimbis=" "
@@ -522,4 +524,8 @@
 
 set cppflags=''
+
+if $X8BRODIE then
+  set cppflags="$cppflags -DNC_DOUBLE -DBLAS -DSGEMV=DGEMV -DSGEMM=DGEMM"
+endif
 
 if ( $io == ioipsl ) then
@@ -979,5 +985,5 @@
    set f90=sxmpif90
    if $MODIPSL then
-     set opt_link="$opt_link -L$MODIPSLDIR"
+     set opt_link="$opt_link -float0 -Wf,-A dbl4 -L$MODIPSLDIR -lblas"
      if ($veget == true) then
        set opt_link="$opt_link -lsxsechiba -lsxparameters -lsxstomate"
