How to install and parallel run in Centos 7.2

Asked by Fan

Hi sir,

I want to use the escript code to inversion gravity and magnetic data. During my research region and data are large, so I want to use parallel escript code to inversion my research region data.

Because of I don't know Centos linux system, So my question 1 : how to install and parallel run escript in Centos Linux 7.2 (this is my parallel machine type).

Questions 2: I had install escript on the windows system, but save the result .vtu file is very large, from the guide document, I know could save the result to .silo file and will be decrease storage. But I don't know how to install support silo on the windows or Linux.

I looking forward you reply.

Thank you very much.

Question information

English Edit question
esys-escript Edit question
No assignee Edit question
Solved by:
Lutz Gross
Last query:
Last reply:
Revision history for this message
Adam Ellery (aellery) said :

Hi Fan,

You can install escript on CentOS 7 by following the following steps:
1. Download and extract the tarball of esys-escript onto your drive.
2. Add the EPEL repository, by opening a terminal and running the command
sudo yum install epel-release.noarch
3. Download and install the dependencies required to run esciprt by running the commands:
sudo yum instal lnetcdf-devel netcdf-cxx-devel gdal-python python-devel numpy scipy sympy python2-scons
sudo yum install python-matplotlib gcc gcc-c++ boost-devel boost-python gdal-devel suitesparse-devel pyproj
4. Compile and install escript, by running the command:
sudo scons -j4 options_file=scons/templates/ prefix=/usr/local install

Please note that this build will not include support the silo format. Unfortunately, the silo package is not available in any of the main CentOS package repositories. It is possible to enable this feature in escript on CentOS, but this requires some additional steps:
1. Download and install the following tarball
tar zvxf silo-4.10.2-bsd-smalltest.tar.gz
2. Navigate to the new folder containing the SILO code and run the following commands
sudo yum install gcc-gfortran
export FC=gfortran
./configure --prefix=/usr/local --with-hdf5=/usr/include,/usr/lib
sudo make -j4 install
3. Now navigate to the folder containing the escript source code and run
sudo scons -j4 silo=1 silo_prefix=/usr/local/ options_file=scons/templates/ prefix=/usr/local install

Unfortunately the windows version of escript does not currently have support for the SILO format. However, I will add it in asap in order to help you with your project.

- Adam

Revision history for this message
Fan (fan188) said :

Dear Adam,

Thank you for your reply in time.

According to you suggesting, I know how to install escripts in Centos7. During my Centos 7 system cann't link the internet and I am not root licence. Therefore, I only use escripts code in my laptop (windows).

About gravity and magnetic data inversion on the escripts code, I have some questions:

My the inversion result .vtu format is very large, I want to know how to show and process it on the windows system.

Thank you very much.


Revision history for this message
Adam Ellery (aellery) said :

Hi Fan,

You can view VTU files using a number of different programs, such as ParaView or VisIt.

Unfortunately, VTU files can be very large in size. Following your feedback, we are currently adding support for SILO files to the anaconda build of escript to resolve this issue.


Revision history for this message
Fan (fan188) said :

Hi Adam,

Thank you for you reply in time.

At present, I using the VisIt software to view the inversion result (VTU files). Because the VTU files is large, when processing the VTU file, my laptop running slow. I listen you are currently adding support for SILO files to resolve this issue, I am looking forward you support for SILO files function.

Thank you very much.


Revision history for this message
Fan (fan188) said :

Hi Adam,

About VisIt show the VTU file, I have one question:

Because my research area is 26 degree by 16 degree region, my inversion depth is 100 km. The horizontal and vertical ratios of inversion result are inharmonious. So the question is: the program of Vislt, whether can adjust the horizontal and vertical ratios? I don't find similar function on the Vislt.

I am looking forward you reply.

Thanks again.


Revision history for this message
Adam Ellery (aellery) said :

Hi Fan,

It may be possible to do what you wish using the operators. You may wish to directly ask the developers of VisIt for more detailed advice.

Best regards,


Revision history for this message
Best Lutz Gross (l-gross) said :

You can also redefine the node coordinates before writing to VTU:

domain.setX( x * [sx, sy, sz] )

Revision history for this message
Fan (fan188) said :

Thanks Lutz Gross, that solved my question.