From 13c983fd338cbca9802c85e4fc3ae32b1d5354af Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Wed, 8 Oct 2014 21:14:35 +0200 Subject: [PATCH] README --- README | 49 ------------------------------------------------- README.md | 41 ++++++++++++++++++++++++++++++++++++++++- src/variable.py | 4 +++- 3 files changed, 43 insertions(+), 51 deletions(-) delete mode 100644 README diff --git a/README b/README deleted file mode 100644 index a0d98c3..0000000 --- a/README +++ /dev/null @@ -1,49 +0,0 @@ -====== -IRPF90 -====== - -Dependencies ------------- - -- GNU make (>= 3.81 recommended) -- Python > 2.3 -- Any Fortran 90 compiler (Intel recommended) - -Installing IRPF90 ------------------ - -${IRPF90_HOME} is the location of your irpf90 directory:: - - cd ${IRPF90_HOME} - make - cat << EOF >> ${HOME}/.bash_profile - export PYTHONPATH=${IRPF90_HOME}/src:${PYTHONPATH} - export PATH=${IRPF90_HOME}/bin:${PATH} - export MANPATH=${IRPF90_HOME}/man:${MANPATH} - EOF - . ${HOME}/.bash_profile - - -Using IRPF90 ------------- - -In an empty directory, run:: - - irpf90 --init - -This command creates a new Makefile suitable for most irpf90 projects. -Now you can start to program using irpf90. - - -Web Site --------- - -http://irpf90.ups-tlse.fr - -Author ------- - -| Anthony Scemama, LCPQ-IRSAMC, CNRS-Universite Paul Sabatier -| -| http://scemama.mooo.com - diff --git a/README.md b/README.md index a57ee51..8a41494 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,43 @@ IRPF90 IRPF90 is a Fortran90 preprocessor written in Python for programming using the Implicit Reference to Parameters (IRP) method. It simplifies the development of large fortran codes in the field of scientific high performance computing. -web site: http://irpf90.ups-tlse.fr +Dependencies +------------ + +- GNU make (>= 3.81 recommended) +- Python > 2.3 +- Any Fortran 90 compiler (Intel recommended) + +Installing IRPF90 +----------------- + +``${IRPF90_HOME}`` is the location of your irpf90 directory:: + +``` bash + cd ${IRPF90_HOME} + make + cat << EOF >> ${HOME}/.bash_profile + export PYTHONPATH=${IRPF90_HOME}/src:${PYTHONPATH} + export PATH=${IRPF90_HOME}/bin:${PATH} + export MANPATH=${IRPF90_HOME}/man:${MANPATH} + EOF + . ${HOME}/.bash_profile +``` + + +Using IRPF90 +------------ + +In an empty directory, run:: + + irpf90 --init + +This command creates a new Makefile suitable for most irpf90 projects. +Now you can start to program using irpf90. + + +Web Site +-------- + +http://irpf90.ups-tlse.fr + diff --git a/src/variable.py b/src/variable.py index 19c2076..3ef4b52 100644 --- a/src/variable.py +++ b/src/variable.py @@ -465,13 +465,15 @@ class Variable(object): same_as = self.same_as def check_openmp(): + if not do_openmp: result = [ "!$ nthreads = omp_get_num_threads()" , "!$ if (nthreads > 1) then" , "!$ print *, irp_here//': Error: Provider in an openMP section'" , "!$ stop 1", "!$ endif" ] + else: result = [] - return result + return result def build_alloc(name): self = variables[name]