Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if param is integer, read it as double, it's not a mistake #12751

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def _assign_nodally_properties(self):
for key, value in mat["Variables"].items():
var = KratosMultiphysics.KratosGlobals.GetVariable(key)
if (self._check_variable_to_set(var)):
if value.IsDouble():
if value.IsNumber():
KratosMultiphysics.VariableUtils().SetVariable(var, value.GetDouble(), model_part.Nodes)
elif value.IsVector():
KratosMultiphysics.VariableUtils().SetVariable(var, value.GetVector(), model_part.Nodes)
Expand Down
Loading