Ticket #950: arch-mpif90_pnetcdf_osx.fcm
File arch-mpif90_pnetcdf_osx.fcm, 1.5 KB (added by liuzhuo, 12 years ago) |
---|
Line | |
---|---|
1 | # generic gfortran compiler options for OSX (intel) |
2 | # NCDF_INC netcdf include file |
3 | # NCDF_LIB netcdf library |
4 | # FC Fortran compiler command |
5 | # FCFLAGS Fortran compiler flags |
6 | # FFLAGS Fortran 77 compiler flags |
7 | # LD linker |
8 | # LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
9 | # FPPFLAGS pre-processing flags |
10 | # AR assembler |
11 | # ARFLAGS assembler flags |
12 | # MK make |
13 | # USER_INC additional include files for the compiler, e.g. -I<include dir> |
14 | # USER_LIB additional libraries to pass to the linker, e.g. -l<library> |
15 | |
16 | |
17 | #%NCDF_INC -I/usr/local/netcdf/include |
18 | # I changed to |
19 | %NCDF_INC -I/usr/local_parallel/include |
20 | # |
21 | #%NCDF_LIB -L/usr/local/netcdf/lib -lnetcdf |
22 | # I changed to |
23 | #%NCDF_LIB -L/usr/local_parallel/lib -lnetcdff |
24 | %NCDF_LIB -L/usr/local_parallel/lib -lnetcdff -lnetcdf -lpnetcdf |
25 | # |
26 | #%FC gfortran |
27 | # I changed to |
28 | #%FC gfortran-mp-4.5 |
29 | %FC mpif90 |
30 | # |
31 | %FCFLAGS -fdefault-real-8 -O3 -m64 -funroll-all-loops -fcray-pointer |
32 | %FFLAGS %FCFLAGS |
33 | #%LD gfortran |
34 | # I changed to |
35 | #%LD gfortran-mp-4.5 |
36 | %LD mpif90 |
37 | # |
38 | %LDFLAGS |
39 | %FPPFLAGS -P -C -traditional |
40 | %AR libtool |
41 | %ARFLAGS -c -s -o |
42 | %MK make |
43 | # |
44 | %USER_INC %NCDF_INC |
45 | #%USER_INC %NCDF_INC -I/sw/include/openmpi |
46 | # |
47 | # |
48 | %USER_LIB %NCDF_LIB |
49 | #%USER_LIB %NCDF_LIB -L/sw/lib/openmpi -lmpi_f90 |
50 | # |