+
Skip to content

Matlab crash at a certain light source position #77

@mofmof3

Description

@mofmof3

When running a cube created with gmsh with a light source set at a certain position, matlab crashes in the code below. If the position of the light source is shifted slightly by 0.5 mm, the calculation may be performed without crashing. Many times, it takes a very long time to load the mesh and find the position of the crashing light source. Could you please give me a good solution?

  • Crashing code.
    qType = 'Neumann';
    qProf = 'Point';
    qWidth = 2;
    qvec = real(mesh.Qvec(qType,qProf, qWidth));

  • Noticed.

    • This has occurred on all operating systems, win7, win10 and win11.
    • This also happens with meshes with shapes other than cubes created in gmsh.
    • There are several locations for the crashing light sources. It is not always clear where.
    • If I change the light source type from Point to Gaussian, I can calculate it without crashing; I want the solution of the Geen function, so I want to calculate it as Point.
    • The software I am using is the release version v.2.0.2. I am using toastpp-2.0.2\win with a copy of toast_bin_win64/win/x64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载