I believe the oblique-source.py example requires Meep 1.9 or later. You can
create an environment for parallel pymeep 1.9 like so (note that the pymeep
packages are now hosted on the conda-forge channel instead of chogan):

$ conda create -n mp1.9 -c conda-forge pymeep=*=mpi_mpich_*
$ conda activate mp1.9


Chris

On Wed, May 22, 2019 at 7:23 AM ei ru <37zi...@gmail.com> wrote:

> Dear meep Users,
>
> When I run the example code of tutorial (
> https://github.com/NanoComp/meep/blob/master/python/examples/oblique-source.py
>  )
> ,
>  I get the error saying nvalid direction in add_eigenmode_source.
> The log is below.
> I currently use pymeep-parallel  of version 1.7.0 which is build from
> py36_nomklh39e3cac_1  [nomkl]  chogan.
> If you have any idea how to fix this, please let me know.
> Thank you.
>
> ######################################
> Using MPI version 3.1, 1 processes
> -----------
> Initializing structure...
> Working in 2D dimensions.
> Computational cell is 14 x 14 x 0 with resolution 50
>      block, center = (0,0,0)
>           size (1e+20,1,1e+20)
>           axes (0.939693,0.34202,0), (-0.34202,0.939693,0), (0,0,1)
>           dielectric constant epsilon diagonal = (12,12,12)
> time for set_epsilon = 2.01864 s
> -----------
> meep: invalid direction in add_eigenmode_source
> application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
> [unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=1
> :
> system msg for write_line failure : Bad file descripto
> ########################################
> _______________________________________________
> meep-discuss mailing list
> meep-discuss@ab-initio.mit.edu
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to