Hi Henry,
On 26/05/17 01:18, Henry LOO wrote:
> Thank you for your reply. I did not do any performance comparison and
> just ran the tutorial following steps in "User Guide". It should run
> very quickly but it becomes very slow, nearly about 9 hours to complete.
> I do not know if adding *cflags**=-Wl,-rpath /usr/**lib64 *in
> configuration line would impact the speed.* Or this is because *the
> timestep is very small (4e-5 seconds) and the complete time is
> comparatively long, say, about 4 seconds.**But without that
> configuration line, it will come to errors shown previously.
On my Linux system:
freddie@fluorine ~/Programming $ virtualenv pyfr-venv
freddie@fluorine ~/Programming $ . pyfr-venv/bin/activate
(pyfr-venv) freddie@fluorine ~/Programming $ pip install pyfr
(pyfr-venv) freddie@fluorine ~/Programming $ cd pyfr-venv/
(pyfr-venv) freddie@fluorine ~/Programming/pyfr-venv $ wget
https://github.com/vincentlab/PyFR/archive/v1.6.0.tar.gz
(pyfr-venv) freddie@fluorine ~/Programming/pyfr-venv $ tar xf
v1.6.0.tar.gz
(pyfr-venv) freddie@fluorine ~/Programming/pyfr-venv $ cd
PyFR-1.6.0/examples/couette_flow_2d/
(pyfr-venv) freddie@fluorine
~/Programming/pyfr-venv/PyFR-1.6.0/examples/couette_flow_2d $ pyfr
import couette_flow_2d.{msh,pyfrm}
(pyfr-venv) freddie@fluorine
~/Programming/pyfr-venv/PyFR-1.6.0/examples/couette_flow_2d $
OMP_NUM_THREADS=1 pyfr run -p -bopenmp couette_flow_2d.pyfrm
couette_flow_2d.ini
100.0% [==================>] 4.00/4.00 ela: 00:03:21 rem: 00:00:00
where you can see that on a single core of my CPU the simulation took 3
minutes. From the above posts it looks as if you are using the Anaconda
distribution. I would strongly advise against this as it has been a
source of problems for our users in the past. Instead, start with a
recent version of Python and then use a virtualenv and pip to install
the relevant dependencies (as I did above).
Regards, Freddie.