Skip to content

Commit

Permalink
Merge pull request #81 from lsiess/master
Browse files Browse the repository at this point in the history
(Makefile) add ifx compiler options
  • Loading branch information
danieljprice authored Jun 26, 2024
2 parents 3f086af + 4990165 commit 791b6c9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,22 @@ ifeq ($(SYSTEM),ifort)
CFLAGS=-Wall -O3 -fPIC
endif

ifeq ($(SYSTEM),ifx)
# this is for the intel fortran compiler (version 10)
FC= ifx
FFLAGS= -O3 -nbs
OMPFLAGS= -qopenmp
DBLFLAGS= -r8
DEBUGFLAG= -C -g
SYSTEMFILE= system_f2003.f90
ENDIANFLAGBIG= -convert big_endian
ENDIANFLAGLITTLE= -convert little_endian
# or use setenv F_UFMTENDIAN=big or little at runtime
KNOWN_SYSTEM=yes
CC=icc
CFLAGS=-Wall -O3 -fPIC
endif

ifeq ($(SYSTEM),pgf90)
# this is for the Portland Group Fortran 90 compiler (tested with version 7.2-5)
FC= pgf90
Expand Down Expand Up @@ -639,6 +655,7 @@ checksystem:

compilers:
@echo "I suggest one of the following, based on detected Fortran compilers..."; echo;
@if type -p ifx > /dev/null; then echo "make SYSTEM=ifx"; fi;
@if type -p ifort > /dev/null; then echo "make SYSTEM=ifort"; fi;
@if type -p pathf90 > /dev/null; then echo "make SYSTEM=pathf90"; fi;
@if type -p pgf90 > /dev/null; then echo "make SYSTEM=pgf90"; fi;
Expand Down

0 comments on commit 791b6c9

Please sign in to comment.