Commit 35594684 authored by Topi Rasku's avatar Topi Rasku
Browse files

#82: Added a data integrity check to ensure that no nodes belong to multiple grids.

parent 6df151fa
......@@ -439,6 +439,16 @@ p_nuReserves(nu(node, unit), restype, up_down)
* --- Data Integrity Checks ---------------------------------------------------
* =============================================================================
* --- Check that nodes aren't assigned to multiple grids ----------------------
loop(node,
if(sum(gn(grid, node), 1) > 1,
put log '!!! Error occurred on node ' node.tl:0 /;
put log '!!! Abort: Nodes cannot be assigned to multiple grids!' /;
abort "Nodes cannot be assigned to multiple grids!"
); // END if(sum(gn))
); // END loop(node)
* --- Check the integrity of node connection related data ---------------------
Option clear = count;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment