Kratos
Kratos copied to clipboard
if param is integer, read it as double, it's not a mistake
Having this input in ConvectionDiffusionMaterials.json
{
"properties" : [{
"model_part_name" : "ThermalModelPart.Heating",
"properties_id" : 2,
"Material" : {
"Variables" : {
"DENSITY" : 0.0,
"CONDUCTIVITY" : 10,
"SPECIFIC_HEAT" : 0.0
},
"Tables" : null
}
}]
}
fails, because the read function says that conductivity value is not properly set.
This allows the user to set 10 instead of 10.0
@rubenzorrilla (lo pongo como draft porque no se si es mejor esta solución, o hacer un mensaje de error más explicativo sobre cual de los parámetros falla, y que el usuario lo corrija)