wsshin / maxwellfdfd

MATLAB-based solver package of Maxwell's equations by the FDFD method
http://www.mit.edu/~wsshin/maxwellfdfd.html
107 stars 45 forks source link

Errors in "poynting.m" in examples #8

Open matthewgiarra opened 7 years ago

matthewgiarra commented 7 years ago

In multiple examples, which should presumably work, the function poynting.m gives an error:

Undefined function or variable 'array'.

Error in poynting (line 105)
S_scalar2d = Scalar2d(array, grid2d, gt_array, osc,
physQ, ['<', physQ.symbol, '_', char(polarization),
'>'], intercept);

Error in mdm (line 56)
    Sx = poynting(Axis.x, E{Axis.y}, E{Axis.z},
        H{Axis.y}, H{Axis.z}, Axis.y, 0);
mnjet commented 6 years ago

This problem is not fix untill yet in mdm.m example