D3DEnergetic / FIDASIM

A Neutral Beam and Fast-ion Diagnostic Modeling Suite
http://d3denergetic.github.io/FIDASIM/
Other
27 stars 18 forks source link

FIDASIM hangs during `make_diagnostic_grid` #247

Closed lamorton closed 2 years ago

lamorton commented 2 years ago

This started with commit "xyz_to_uvw bug fix in visualization scripts and utilities (#212)."

I'm using gnu9 compiler suite. No error messages, just never gets past the make_diagnostic_grid routine, even after 1.5hr. It was instantaneous previously.

lstagner commented 2 years ago

huh...what a strange commit to cause it to hang. @alvin-garcia its your commit any idea what went wrong

lamorton commented 2 years ago

I'm wondering it it's trying to reserve too much memory? But I'd expect that to cause a crash, not just hanging.

lstagner commented 2 years ago

The allocation could be eating into swap memory.

alvin-garcia commented 2 years ago

grid_intersect is called by make_diagnostic_grid and I suspect your run is getting stuck in an infinite while loop. Assuming this is the source of your issue, please answer the following:

Are trying to output active or passive signals? How do you know your line of sights correctly intersect the beam grid or plasma?

lamorton commented 2 years ago
  1. Just active signals a.t.m.
  2. Some of them miss the beam box (but they should all hit the plasma).
alvin-garcia commented 2 years ago

Do you see Channel # missed the beam grid in the FIDASIM output file for the chords you suspect to miss the beam grid? If you are using prefida to prepare the inputs, you should see a similar message there.

lamorton commented 2 years ago

I see the message on the prefida, but not on FIDASIM output.

lamorton commented 2 years ago

I fixed it by switching to the Intel compiler, which is apparently the preferred one on our cluster.

lstagner commented 2 years ago

While its good that you resolved the issue we nominally support gfortran so could you send us your input files and we can see if we can get gfortran up and running.