Hello,
I installed meep-mpi manually by building almost everything from the
source. However my simulation time has not decreased but the subpixel
averaging time is cut by more than half. Moreover the GUILE warning is
appearing four times now. So does this mean that meep-mpi is not
installed properly?
My machine has 4-core intel-i3-3120M, 2.50 GHz, 4 GB RAM and 64-Bit
LINUX-4.8.0-58-generic Ubuntu 16.04 LTS OS.
No previous versions of meep, meep-mpi or meep-openmpi are installed. I
got a huge number of warnings in the make step of parallel-hdf5, h5utils
and meep, but no errors.
The steps that I followed are attached in a .txt file and also given
below:-
For g77
sudo apt-get install gfortran
For f77
sudo apt-get install fort77
For BLAS
sudo apt-get install libblas-dev checkinstall
sudo apt-get install libblas-doc checkinstall
For LAPACK
sudo apt-get install liblapack-dev checkinstall
sudo apt-get install liblapack-doc checkinstall
For Harminv
Downloaded from- http://ab-initio.mit.edu/wiki/index.php/Harminv
./configure
make
sudo make install
For Guile
Checked if there is already a version of guile installed on the
system.No previous version.
sudo apt-get -f install *guile-2.0
For libctl
Downloaded from- http://ab-initio.mit.edu/wiki/index.php/Libctl
./configure LIBS="-lm"
make
sudo make install
For MPICH
Downloadeded from- http://www.mpich.org/downloads/
./configure
make
sudo make install
----OR----
sudo apt-get install mpich
For GNU M4
sudo apt-get -f install m4
For Parallel-HDF5
Downloaded from-
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.1/src/
./configure --prefix=/usr/local/hdf5 --enable-parallel CC=mpicc
CXX=mpich
make
sudo make install
For H5utils
Downloaded from- http://ab-initio.mit.edu/wiki/index.php/H5utils
export LDFLAGS="-L/usr/local/hdf5/lib"
export CDFLAGS="-I/usr/local/hdf5/include"
./configure CFLAGS=-I/usr/include/mpich
make
sudo make install
For GNU GSL
Downloaded from- http://infinity.kmeacollege.ac.in/gnu/gsl/
./configure
make
sudo make install
For zlib
sudo apt-get install libpng-dev
For MEEP
Downloaded from- http://ab-initio.mit.edu/wiki/index.php/Meep_download
export LIBS="-L/usr/local/hdf5/lib"
export CPPFLAGS="-I/usr/local/hdf5/include"
./configure --with-mpi
make
sudo make install
The code on which I am trying meep-mpi is attached in a .ctl file and
also given below:-
(reset-meep)
(set-param! resolution 10)
(define-param ra 10)
(define-param ha 20)
(define-param rm 12)
(define-param hm 24)
(set! geometry-lattice (make lattice (size (+ rm rm 1) (+ rm rm 1) (+
hm 2))))
(set! geometry(list
(make cylinder(center 0 0 0)(axis (vector3 0 0 1))(height hm)(radius
rm)(material metal))
(make cylinder(center 0 0 0)(axis (vector3 0 0 1))(height ha)(radius
ra)(material air))
))
(define-param fcen 0.0659)
(define-param df 0.01)
(set! sources (list
(make source(src (make gaussian-src (frequency fcen) (fwidth
df)))
(center 0 0 0)(size 0 0 0)(component
Hz))
))
(set! symmetries(list(make mirror-sym (direction Z))))
(init-fields)
(define (f_e r ex ey ez)
(sqrt (+ (* ex ex) (* ey ey) (* ez ez)))
)
(define (electric-output) (output-field-function "electric-function"
(list Ex Ey Ez) f_e))
(define (f_m r hx hy hz)
(sqrt (+ (* hx hx) (* hy hy) (* hz hz)))
)
(define (magnetic-output) (output-field-function "magnetic-function"
(list Hx Hy Hz) f_m))
(run-sources+ 200 (at-beginning output-epsilon)(after-sources (harminv
Hz (vector3 0 0 0) fcen df))(at-end electric-output magnetic-output))
(define freq (car (map harminv-freq-re harminv-results)))
(print "frequency:" (* 299.79245 freq) " GHz\n")
Executed via:- mpirun -np 4 meep-mpi TE011.ctl
The results are good, just the time of simulation has not decreased for
me using meep-mpi.
------This warning message appears four times after execution------
Some deprecated features have been used. Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information. Set it to "no" to suppress
this message.
Any sort of help is highly appreciated.
Jitendra
(reset-meep)
(set-param! resolution 10)
(define-param ra 10)
(define-param ha 20)
(define-param rm 12)
(define-param hm 24)
(set! geometry-lattice (make lattice (size (+ rm rm 1) (+ rm rm 1) (+ hm 2))))
(set! geometry(list
(make cylinder(center 0 0 0)(axis (vector3 0 0 1))(height
hm)(radius rm)(material metal))
(make cylinder(center 0 0 0)(axis (vector3 0 0 1))(height
ha)(radius ra)(material air))
))
(define-param fcen 0.0659)
(define-param df 0.01)
(set! sources (list
(make source(src (make gaussian-src (frequency fcen) (fwidth
df)))
(center 0 0 0)(size 0 0 0)(component
Hz))
))
(set! symmetries(list(make mirror-sym (direction Z))))
(init-fields)
(define (f_e r ex ey ez)
(sqrt (+ (* ex ex) (* ey ey) (* ez ez)))
)
(define (electric-output) (output-field-function "electric-function" (list Ex
Ey Ez) f_e))
(define (f_m r hx hy hz)
(sqrt (+ (* hx hx) (* hy hy) (* hz hz)))
)
(define (magnetic-output) (output-field-function "magnetic-function" (list Hx
Hy Hz) f_m))
(run-sources+ 200 (at-beginning output-epsilon)(after-sources (harminv Hz
(vector3 0 0 0) fcen df))(at-end electric-output magnetic-output))
(define freq (car (map harminv-freq-re harminv-results)))
(print "frequency:" (* 299.79245 freq) " GHz\n")
;Executed via:- mpirun -np 4 meep-mpi TE011.ctl
For g77
sudo apt-get install gfortran
For f77
sudo apt-get install fort77
For BLAS
sudo apt-get install libblas-dev checkinstall
sudo apt-get install libblas-doc checkinstall
For LAPACK
sudo apt-get install liblapack-dev checkinstall
sudo apt-get install liblapack-doc checkinstall
For Harminv
Downloaded from- http://ab-initio.mit.edu/wiki/index.php/Harminv
./configure
make
sudo make install
For Guile
Check if there is already a version of guile installed on the system.Otherwise,
sudo apt-get -f install *guile-2.0
For libctl
Downloaded from- http://ab-initio.mit.edu/wiki/index.php/Libctl
./configure LIBS="-lm"
make
sudo make install
For MPICH
sudo apt-get install mpich
----OR----
Downloadeded from- http://www.mpich.org/downloads/
./configure
make
sudo make install
For GNU M4
sudo apt-get -f install m4
For Parallel-HDF5
Downloaded from-
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.1/src/
./configure --prefix=/usr/local/hdf5 --enable-parallel CC=mpicc CXX=mpich
make
sudo make install
For H5utils
Downloaded from- http://ab-initio.mit.edu/wiki/index.php/H5utils
export LDFLAGS="-L/usr/local/hdf5/lib"
export CDFLAGS="-I/usr/local/hdf5/include"
./configure CFLAGS=-I/usr/include/mpich
make
sudo make install
For GNU GSL
Downloaded from- http://infinity.kmeacollege.ac.in/gnu/gsl/
./configure
make
sudo make install
For zlib
sudo apt-get install libpng-dev
For MEEP
Downloaded from- http://ab-initio.mit.edu/wiki/index.php/Meep_download
export LIBS="-L/usr/local/hdf5/lib"
export CPPFLAGS="-I/usr/local/hdf5/include"
./configure --with-mpi
make
sudo make install
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss