You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I create an object and then pass the object separately as a constructor for another class in another line, everything seems to be fine.
m=Material(1.2)
r=Planar(m)
r.N()
1
r.core()
Isotropic n=(1.2,0)
However, if I try to create and call both classes in the same command (as follows)
t=Planar(Material(1.2))
print(t)
TE (inf,nan) Theta nan
t.N()
1
t.core()
zsh: segmentation fault python
I get this Seg.. fault error. Stranger is that the error does not appear at the time of creating but when calling some function of the class. and the error does not appears for all. Here, N() function worked but the core() function caused the error.
The text was updated successfully, but these errors were encountered:
If I create an object and then pass the object separately as a constructor for another class in another line, everything seems to be fine.
However, if I try to create and call both classes in the same command (as follows)
I get this Seg.. fault error. Stranger is that the error does not appear at the time of creating but when calling some function of the class. and the error does not appears for all. Here, N() function worked but the core() function caused the error.
The text was updated successfully, but these errors were encountered: