From 0008bf19257973c10a5dcc7e74f89ba84f8a35ff Mon Sep 17 00:00:00 2001 From: Xavier Andrade Date: Tue, 9 Jul 2024 01:48:15 -0700 Subject: [PATCH] Only set pseudo_set or pseudo_file at the same time. --- src/ionic/species.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ionic/species.hpp b/src/ionic/species.hpp index 5c829b9d..11b91286 100644 --- a/src/ionic/species.hpp +++ b/src/ionic/species.hpp @@ -49,11 +49,13 @@ class species : public pseudo::element { } auto pseudo_file(const std::string & file){ + pseudo_set_.reset(); pseudo_file_ = file; return *this; } - + auto pseudo_set(pseudo::set_id const & set){ + pseudo_file_.reset(); pseudo_set_ = set; return *this; }