Replies: 3 comments 7 replies
-
I tried running the same script on a more powerful workstation and got validation errors. If you have seen this and there is a quick fix, I would appreciate the help. |
Beta Was this translation helpful? Give feedback.
-
One reason why you are hitting a memory error could be that scipy is trying to multi-thread. One thing you could try is explicitly turning that off. How to do that exactly depends on your machine and the scipy installation, but you can try this, which should cover almost all cases:
You have to do this before importing tidy3d. |
Beta Was this translation helpful? Give feedback.
-
Note that we are also preparing a release in which you can use an automatically generated non-uniform grid. This could significantly reduce the total number of grid points in your problem, as you can have a fine grid around the waveguide and a coarse one away from it. This should be out next week. |
Beta Was this translation helpful? Give feedback.
-
I am trying to inject a mode into a very wide (15um) and thin waveguide (100nm) so the grid size is fairly fine (10nm). However get the mode solver crashes with frequency memory errors when SuperLU is called. Is there a solution besides using a workstation with more memory?
...
~\Anaconda3\lib\site-packages\scipy\sparse\linalg\dsolve\linsolve.py in splu(A, permc_spec, diag_pivot_thresh, relax, panel_size, options)
335 _options["SymmetricMode"] = True
336
--> 337 return _superlu.gstrf(N, A.nnz, A.data, A.indices, A.indptr,
338 csc_construct_func=csc_construct_func,
339 ilu=False, options=_options)
MemoryError:
Beta Was this translation helpful? Give feedback.
All reactions