From a3fdda5a49cf783af9d4971547778a803ce633fa Mon Sep 17 00:00:00 2001
From: juacrumar <juacrumar@gmail.com>
Date: Wed, 30 Sep 2020 13:03:07 +0200
Subject: [PATCH] add a separate warning for mul=0

---
 n3fit/src/n3fit/checks.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/n3fit/src/n3fit/checks.py b/n3fit/src/n3fit/checks.py
index b9d57cdb30..1c4310df8e 100644
--- a/n3fit/src/n3fit/checks.py
+++ b/n3fit/src/n3fit/checks.py
@@ -129,6 +129,8 @@ def check_lagrange_multipliers(parameters, key):
     multiplier = lagrange_dict.get("multiplier")
     if multiplier is not None and multiplier < 0:
         log.warning("The %s multiplier is below 0, it will produce a negative loss", key)
+    elif multiplier is not None and multiplier == 0:
+        log.warning("The %s multiplier is 0 so it won't contribute to the loss", key)
     threshold = lagrange_dict.get("threshold")
     if threshold is not None and not _is_floatable(threshold):
         raise CheckError(f"The {key}::threshold must be a number, received: {threshold}")
-- 
GitLab