source: trunk/ioipsl/compile_ioipsl_gnome.bash @ 61

Last change on this file since 61 was 59, checked in by aslmd, 14 years ago

LMDZ jupiter: essai compilation/run sur GNOME ok; ajout de fichiers arch; script pour IOIPSL; script llsubmit. LMD_MM_MARS ancienne physique compile en sequentiel et en parallele sans modification avec les reglages ifort natifs

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/bin/bash
2#
3# Aymeric: pour construire IOIPSL [adapte de get_lmdz_ciclad_pgf90.bash]
4#
5
6rm -rf lib
7mkdir lib
8mkdir modeles
9
10### 1. Get IOIPSL (via modipsl) and compile it
11cd util
12## get IOIPSL
13./model IOIPSL
14
15## 2. Set correct settings
16# add a "gnome" configuration to AA_make.gdef
17echo "#-Q- gnome  #- Global definitions for Idataplex (gnome) at UPMC, ifort" >> AA_make.gdef
18echo "#-Q- gnome  M_K = make" >> AA_make.gdef
19echo "#-Q- gnome  P_C = cpp" >> AA_make.gdef
20echo '#-Q- gnome  P_O = -P -C $(P_P)' >> AA_make.gdef
21echo "#-Q- gnome  F_C = ifort -c" >> AA_make.gdef
22echo "#-Q- gnome  #-D- MD    F_D = -g" >> AA_make.gdef
23echo "#-Q- gnome  #-D- MN    F_D =" >> AA_make.gdef
24echo "#-Q- gnome  #-P- I4R4  F_P = -integer-size 32" >> AA_make.gdef
25echo "#-Q- gnome  #-P- I4R8  F_P = -integer-size 32 -real-size 64" >> AA_make.gdef
26echo "#-Q- gnome  #-P- I8R8  F_P = -integer-size 64 -real-size 64" >> AA_make.gdef
27echo '#-Q- gnome  F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)' >> AA_make.gdef
28echo "#-Q- gnome  F_L = ifort" >> AA_make.gdef
29echo "#-Q- gnome  M_M = 0" >> AA_make.gdef
30echo "#-Q- gnome  L_X = 0" >> AA_make.gdef
31echo "#-Q- gnome  L_O =" >> AA_make.gdef
32echo "#-Q- gnome  A_C = ar -r" >> AA_make.gdef
33echo "#-Q- gnome  A_G = ar -x" >> AA_make.gdef
34echo "#-Q- gnome  C_C = icc -c" >> AA_make.gdef
35echo "#-Q- gnome  C_O =" >> AA_make.gdef
36echo "#-Q- gnome  C_L = icc" >> AA_make.gdef
37echo "#-Q- gnome  #-" >> AA_make.gdef
38echo "#-Q- gnome  NCDF_INC = /usr/local/include" >> AA_make.gdef
39echo "#-Q- gnome  NCDF_LIB = -L/usr/local/lib -lnetcdf" >> AA_make.gdef
40echo "#-Q- gnome  #-" >> AA_make.gdef
41
42ins_make -t gnome -p I4R8
43
44## 3. build ioipsl:
45cd ../modeles/IOIPSL/src
46make
47
48rm -rf modeles
49
50exit
Note: See TracBrowser for help on using the repository browser.