mirror of https://gitlab.com/scemama/EZFIO.git
Python2
This commit is contained in:
parent
ef8ac2a2c5
commit
214c57a1fe
2
Makefile
2
Makefile
|
@ -45,7 +45,7 @@ archive: distclean
|
||||||
rm -rf EZFIO
|
rm -rf EZFIO
|
||||||
|
|
||||||
make.config:
|
make.config:
|
||||||
python configure.py
|
./configure.py
|
||||||
|
|
||||||
veryclean:
|
veryclean:
|
||||||
$(MAKE) -C src veryclean
|
$(MAKE) -C src veryclean
|
||||||
|
|
|
@ -186,7 +186,7 @@ Create a file named ``create_input.py`` with:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python2
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
EZFIO = "./EZFIO" # Put here the absolute path to the EZFIO directory
|
EZFIO = "./EZFIO" # Put here the absolute path to the EZFIO directory
|
||||||
|
@ -229,7 +229,7 @@ Execute the script:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ python create_input.py
|
$ python2 create_input.py
|
||||||
18.0
|
18.0
|
||||||
|
|
||||||
The printed mass is correct, and a new directory (``Water``) was created with our data:
|
The printed mass is correct, and a new directory (``Water``) was created with our data:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
include version
|
include version
|
||||||
|
|
||||||
rule build_generated_ninja
|
rule build_generated_ninja
|
||||||
command = python configure.py
|
command = python2 configure.py
|
||||||
description = Creating generated.ninja
|
description = Creating generated.ninja
|
||||||
|
|
||||||
rule run_ninja
|
rule run_ninja
|
||||||
|
|
|
@ -116,11 +116,11 @@ rule build_libezfio_irp_a
|
||||||
description = Building libezfio_irp.a
|
description = Building libezfio_irp.a
|
||||||
|
|
||||||
rule build_python
|
rule build_python
|
||||||
command = cd src ; python create_python.py
|
command = cd src ; python2 create_python.py
|
||||||
description = Building Python module
|
description = Building Python module
|
||||||
|
|
||||||
rule build_ocaml
|
rule build_ocaml
|
||||||
command = cd src ; python create_ocaml.py
|
command = cd src ; python2 create_ocaml.py
|
||||||
description = Building Ocaml module
|
description = Building Ocaml module
|
||||||
|
|
||||||
build {irpf90_files}: compile_irpf90 | {irpf90_sources} {CONFIG_FILES}
|
build {irpf90_files}: compile_irpf90 | {irpf90_sources} {CONFIG_FILES}
|
||||||
|
|
Loading…
Reference in New Issue