Changeset 58 for trunk


Ignore:
Timestamp:
02/11/09 12:35:02 (15 years ago)
Author:
pinsard
Message:

fortran portability

Location:
trunk/src
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/SIMULS_IRCAAM/prepare_olr_filtre_simulation.m

    r55 r58  
    5454% $Id$ 
    5555% 
     56% - fplod 2009-02-10T15:54:57Z aedon.locean-ipsl.upmc.fr (Darwin) 
     57% 
     58%   * force output to be written using IEEE floating point 32 bits 
     59% 
    5660% - fplod 2009-02-04T09:40:31Z aedon.locean-ipsl.upmc.fr (Darwin) 
    57 %   * force output to be written using EEE floating point with little-endian byte  
    58 %     order 
     61% 
     62%   * force output to be written using IEEE floating point with little-endian  
     63%     byte order 
     64% 
    5965% - fplod 2009-02-02T13:45:57Z aedon.locean-ipsl.upmc.fr (Darwin) 
    6066% 
     
    7379global IRCAAM_OD; 
    7480 
    75 % force output to be written using EEE floating point with little-endian byte  
     81% force output to be written using IEEE floating point with little-endian byte  
    7682% order 
    7783machineformat='l'  
     
    149155fid=fopen(fullfilename,'w',machineformat); 
    150156clear fullfilename; 
    151 fwrite(fid,olr,'float'); 
     157fwrite(fid,olr,'float32'); 
    152158fclose(fid); 
  • trunk/src/SIMULS_IRCAAM/progfiltrage_simulation.F90

    r55 r58  
    7979C $Id$ 
    8080C 
     81C - fplod 2009-02-11T11:28:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     82C 
     83C   * bug fix for getenv using Nag compiler 
     84C 
    8185C - fplod 2009-02-10T13:57:29Z aedon.locean-ipsl.upmc.fr (Darwin) 
    8286C 
     
    99103C- 
    100104C 
     105#ifdef NAGf90Fortran 
     106      USE F90_UNIX_ENV 
     107#endif 
     108 
    101109      IMPLICIT NONE 
    102110 
     
    164172 
    165173      CALL GETENV('IRCAAM_ID',ircaam_id) 
    166 C++      ircaam_id='/usr/temp/fplod/ircaam_d/' 
    167174      CALL GETENV('IRCAAM_OD',ircaam_od) 
    168 C++      ircaam_od='/usr/temp/fplod/ircaam_d/' 
    169175 
    170176      WRITE(fullfilename,'(A,A,A,A,A,A)') 
  • trunk/src/makefile

    r55 r58  
    1515# EVOLUTIONS 
    1616# ========== 
     17# 
     18# - fplod 2009-02-11T11:16:11Z aedon.locean-ipsl.upmc.fr (Darwin) 
     19# 
     20#   * main source renamed from .f to .F90 
     21#   * add gfortran 
     22#   * improve nag and g95 options 
    1723# 
    1824# - fplod 2009-02-05T15:22:33Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    4147LD=g95 
    4248 
    43 FFLAGS=-g -O -fbounds-check \ 
     49FFLAGS=-g -O -ffixed-form -fbounds-check \ 
    4450-Wimplicit-none -Wall \ 
    4551-Wextra -Wunused -Wuninitialized -Wprecision-loss \ 
     
    6571#FC=ifort 
    6672#LD=ifort 
    67 #FFLAGS=-g -inline_debug_info -fixed -stand f90 \ 
     73#FFLAGS=-g -O0 -inline_debug_info -fixed -stand f90 \ 
    6874#-fpe:0 -ftz- -check all -warn all \ 
    6975#-convert little_endian 
     76#LDOPTS=-g -O0 
    7077 
    7178# 32 bits -fpe:0 -ftz-  -fpstkchk -check all -warn all \ 
     79 
     80# !! -fconvert in gfortran only works for main program 
     81#FC=gfortran 
     82#LD=gfortran 
     83#FFLAGS=-g -ffixed-form -fbounds-check  
     84#-std=f95 -fall-intrinsics -pedantic-errors -Wall \ 
     85#-ffpe-trap=invalid,zero,overflow,underflow,precision,denormal \ 
     86#-frange-check \ 
     87#-fconvert=little-endian 
     88#LDOPTS=-g 
    7289 
    7390LDFLAGS=$(LDOPTS) 
     
    93110 
    94111progfiltrage_simulation.o: \ 
    95 $(DIRSRC)/SIMULS_IRCAAM/progfiltrage_simulation.f 
     112$(DIRSRC)/SIMULS_IRCAAM/progfiltrage_simulation.F90 
    96113        @$(FC) -c $(FFLAGS) -o $@ \ 
    97         $(DIRSRC)/SIMULS_IRCAAM/progfiltrage_simulation.f 
     114        $(DIRSRC)/SIMULS_IRCAAM/progfiltrage_simulation.F90 
    98115 
    99116forfilter.o: \ 
Note: See TracChangeset for help on using the changeset viewer.