Skip to content

End job when ValueError is thrown #79

@aglaws

Description

@aglaws

When a portion of a panel is set outside the domain (e.g., if the array is rotated to account for the wind direction), the meshing task fails and a ValueError is thrown. However, this error does not appear to kill the overall job, and it instead hangs until the job times out or is manually canceled. See log output below:

Reading problem definition from stream1_x_span1.yaml
| Setting general.output_dir = /scratch/aglaws/PVade_output/sample_00005 from command line.
| Setting domain.x_max = 100.0 from command line.
| Setting domain.y_min = -120.0 from command line.
| Setting domain.y_max = 120.0 from command line.
| Setting pv_array.stream_rows = 1 from command line.
| Setting pv_array.span_rows = 4 from command line.
| Setting pv_array.tracker_angle = 4.977169812882774 from command line.
| Setting fluid.u_ref = 9.757567379913164 from command line.
| Setting fluid.wind_direction = 20.042524650628227 from command line.
Traceback (most recent call last):
File "/home/aglaws/solarflow/sampling/ns_main.py", line 164, in
params, elasticity, flow = main()
File "/home/aglaws/solarflow/sampling/ns_main.py", line 36, in main
domain.build(params)
File "/kfs2/projects/solarflow/PVade/pvade/geometry/MeshManager.py", line 152, in build
self.geometry.build_FSI(params)
File "/kfs2/projects/solarflow/PVade/pvade/geometry/panels3d/DomainCreation.py", line 331, in build_FSI
raise ValueError(
ValueError: Panel with location (x, y) = (0.0, 12.625) extends past x_min wall.
srun: Job step aborted: Waiting up to 32 seconds for job step to finish.
slurmstepd: error: *** STEP 7449040.0 ON x1008c3s1b1n0 CANCELLED AT 2025-03-14T09:15:07 ***
slurmstepd: error: *** JOB 7449040 ON x1008c3s1b1n0 CANCELLED AT 2025-03-14T09:15:07 ***

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions