Merge branch 'master' into master

This commit is contained in:
Anthony Scemama 2018-05-02 19:40:44 +02:00 committed by GitHub
commit 54d64397ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 29 additions and 25 deletions

View File

@ -30,10 +30,12 @@ include make.config
default: make.config
cd src && $(MAKE)
clean:
- bash -c "[[ -f lib/libezfio.a ]] && rm $$PWD/lib/*"
- bash -c "[[ -f Python/ezfio.py ]] && rm $$PWD/Python/*"
- bash -c "[[ -f Ocaml/ezfio.ml ]] && rm $$PWD/Ocaml/*"
- bash -c "[[ -f Bash/ezfio.sh ]] && rm $$PWD/Bash/*"
- $(MAKE) -C $$PWD/src veryclean
archive: distclean
@ -44,7 +46,7 @@ archive: distclean
rm -rf EZFIO
make.config:
python configure.py
./configure.py
veryclean:
$(MAKE) -C src veryclean

View File

@ -186,7 +186,7 @@ Create a file named ``create_input.py`` with:
.. code-block:: python
#!/usr/bin/python
#!/usr/bin/python2
import sys
EZFIO = "./EZFIO" # Put here the absolute path to the EZFIO directory
@ -229,7 +229,7 @@ Execute the script:
.. code-block:: bash
$ python create_input.py
$ python2 create_input.py
18.0
The printed mass is correct, and a new directory (``Water``) was created with our data:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys
import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys
import os

View File

@ -1,7 +1,7 @@
include version
rule build_generated_ninja
command = python configure.py
command = python2 configure.py
description = Creating generated.ninja
rule run_ninja

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import os,sys
@ -26,6 +26,7 @@ d_default = {
"FCFLAGS" : '-O2',
"RANLIB" : 'ranlib',
"AR" : 'ar',
"BUILD_SYSTEM" : 'make',
"NINJA" : 'ninja',
}
@ -116,11 +117,11 @@ rule build_libezfio_irp_a
description = Building libezfio_irp.a
rule build_python
command = cd src ; python create_python.py
command = cd src ; python2 create_python.py
description = Building Python module
rule build_ocaml
command = cd src ; python create_ocaml.py
command = cd src ; python2 create_ocaml.py
description = Building Ocaml module
build {irpf90_files}: compile_irpf90 | {irpf90_sources} {CONFIG_FILES}

View File

@ -51,10 +51,11 @@ static: ../lib/libezfio.a ../lib/libezfio_irp.a
$(AR) dv ../lib/libezfio_irp.a irp_stack.irp.o
$(RANLIB) ../lib/libezfio_irp.a
../Python/ezfio.py:
python create_python.py
../Ocaml/ezfio.ml:
python create_ocaml.py
../Python/ezfio.py: ../lib/libezfio.a
python2 create_python.py
../Ocaml/ezfio.ml: ../lib/libezfio.a
python2 create_ocaml.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# EZFIO is an automatic generator of I/O libraries
# Copyright (C) 2009 Anthony SCEMAMA, CNRS
#

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env python2
# EZFIO is an automatic generator of I/O libraries
# Copyright (C) 2009 Anthony SCEMAMA, CNRS
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# EZFIO is an automatic generator of I/O libraries
# Copyright (C) 2009 Anthony SCEMAMA, CNRS
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# EZFIO is an automatic generator of I/O libraries
# Copyright (C) 2009 Anthony SCEMAMA, CNRS
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# EZFIO is an automatic generator of I/O libraries
# Copyright (C) 2009 Anthony SCEMAMA, CNRS
#

View File

@ -159,7 +159,7 @@ subroutine ezfio_set_file(filename_in)
call ezfio_mkdir(trim(libezfio_filename)//'/ezfio')
call system('LANG= date > '//trim(libezfio_filename)//'/ezfio/creation')
call system('echo $USER > '//trim(libezfio_filename)//'/ezfio/user')
BEGIN_SHELL [ /usr/bin/python ]
BEGIN_SHELL [ /usr/bin/env python2 ]
import os
command = "'echo %s > '//trim(libezfio_filename)//'/ezfio/library'"
cwd = os.getcwd()
@ -178,7 +178,7 @@ subroutine ezfio_finish()
! Close all open buffers
END_DOC
close(libezfio_iunit)
BEGIN_SHELL [ /usr/bin/python ]
BEGIN_SHELL [ /usr/bin/env python2 ]
import os
from zlib import crc32
print ' call irp_finalize_%s'%(str(abs(crc32(os.getcwd()))))

View File

@ -22,7 +22,7 @@
! 31062 Toulouse Cedex 4
! scemama@irsamc.ups-tlse.fr
BEGIN_SHELL [ /usr/bin/python ]
BEGIN_SHELL [ /usr/bin/env python2 ]
import groups
END_SHELL

View File

@ -111,7 +111,7 @@ subroutine libezfio_closez(filename,mode)
end
BEGIN_SHELL [ /usr/bin/python ]
BEGIN_SHELL [ /usr/bin/env python2 ]
from f_types import format, t_short

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# EZFIO is an automatic generator of I/O libraries
# Copyright (C) 2009 Anthony SCEMAMA, CNRS
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# EZFIO is an automatic generator of I/O libraries
# Copyright (C) 2009 Anthony SCEMAMA, CNRS
#

View File

@ -1 +1 @@
VERSION=1.3.1
VERSION=1.3.2