diff --git a/applications/GeoMechanicsApplication/python_scripts/set_parameter_field_process.py b/applications/GeoMechanicsApplication/python_scripts/set_parameter_field_process.py index c81bccb9da0..c8b1a77c73b 100644 --- a/applications/GeoMechanicsApplication/python_scripts/set_parameter_field_process.py +++ b/applications/GeoMechanicsApplication/python_scripts/set_parameter_field_process.py @@ -43,8 +43,8 @@ def __init__(self, Model, settings ): self.params.AddValue("func_type", settings["func_type"]) self.params.AddValue("function", settings["function"]) self.params.AddValue("dataset", settings["dataset"]) - is_variable_vector_type = isinstance(self.GetVariableBasedOnString(), KratosMultiphysics.VectorVariable) - if "input" in settings["func_type"].GetString() and is_variable_vector_type: + if ("input" in settings["func_type"].GetString() and + isinstance(self.GetVariableBasedOnString(), KratosMultiphysics.VectorVariable)): self.params.AddValue("vector_variable_indices", settings["vector_variable_indices"]) if "json_file" in settings["func_type"].GetString(): self.params.AddValue("dataset_file_name", settings["dataset_file_name"])