From 24804a1f6fa6bb9071bcd5c0bd0f2117da3a3d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 1 Jul 2014 17:43:34 +0200 Subject: [PATCH] clone_wells(): Assert result equal to input This adds a debug-mode safety belt that cloning wells produces a comparable set of wells to the input. --- opm/core/wells/wells.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opm/core/wells/wells.c b/opm/core/wells/wells.c index 81a8ddc16..67ff1438a 100644 --- a/opm/core/wells/wells.c +++ b/opm/core/wells/wells.c @@ -536,6 +536,8 @@ clone_wells(const struct Wells *W) } } + assert (wells_equal(newWells, W, false)); + return newWells; }