-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Dear Developers,
When running Yambo with the rim-w flag on a 2D system, the code crashes with the following error:
<03m-28s> P1: [09.01] RIM-W interpolation
<03m-28s> P1: [WARNING] RIM-W works only for 2D semiconductors with slab cutoff
P1: [ERROR] STOP signal received while in[09.01] RIM-W interpolation
P1: [ERROR] G_max 15 for RIM-W is higher than G_max 1 of vX
This occurs when NGsBlkXp is set lower than RandGvecW. In my input, I explicitly set both NGsBlkXp and RandGvecW to 1 RL as a test before running a full GW calculation. However, Yambo internally overrides RandGvecW to 15 RL (the minimum for 2D systems), which leads to the mismatch and the crash.
While I understand the need for a minimum RandGvecW, it is inconvenient that this mismatch causes the entire database to become unusable, requiring a full restart of the GW run. This is especially painful because RIM-W is step 9 in the GW workflow, and a failure there means losing all previous progress. For a minimum test calculation, this is no problem. But when by accident this happens for larger calculations it is painful.
Suggestion:
It would be very helpful if Yambo could issue a warning and exit early.
Alternatively, a more graceful handling of this mismatch would help users avoid the full recomputation (change NGsBlkXP accordingly).
I tag @rreho, as he knows more on this behaviour.