Yan Liu wrote:
> Dear steven and meep users:
> I am using meep-mpi to calculate the E-field. I want to know how to
> change this sentence
> initialize mpi(argc, argv); // do this even for non-MPI Meep 
>
>  
> in order to use 8 cores to do the calculation?
>
> Also, how to compile my .cpp file (is it the same as non-MPI meep?)
>   
> Best Regards!
> -- 
> Thanks!
> Yan Liu
> ------------------------------------------------------------------------
>
> _______________________________________________
> meep-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
Hi,

You can set a flag like -np 8 in your mpirun or relevant commands to
tell your programs to
use 8 cores.

If you have meep_mpi lib compiled and installed successfully, then in
_BASH_ use the command
shown in MEEP website like

export PKG_CONFIG_PATH=/path/to/pkgconfig/
mpicxx `pkg-config --cflags meep_mpi` foo.cpp -o foo `pkg-config --libs
meep_mpi`


Please read some MPI manuals such as ones in MPICH, MPICH2, LAM/MPI or
OPENMPI,
and the tutorials in MEEP website.

Zheng
2008-12-16
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to