MCPcopy Create free account
hub / github.com/KratosMultiphysics/Kratos / ReadSerialModelPart

Function ReadSerialModelPart

kratos/python_scripts/testing/utilities.py:42–52  ·  view source on GitHub ↗

Reads mdpa file This method reads mdpa file and fills given model_part accordingly without MPI Args: mdpa_file_name (str): Name of the mdpa file (without ".mdpa" extension) model_part (Kratos.ModelPart): ModelPart to be filled

(mdpa_file_name, model_part)

Source from the content-addressed store, hash-verified

40
41
42def ReadSerialModelPart(mdpa_file_name, model_part):
43 """Reads mdpa file
44
45 This method reads mdpa file and fills given model_part accordingly without MPI
46
47 Args:
48 mdpa_file_name (str): Name of the mdpa file (without ".mdpa" extension)
49 model_part (Kratos.ModelPart): ModelPart to be filled
50 """
51 import_flags = Kratos.ModelPartIO.READ | Kratos.ModelPartIO.SKIP_TIMER
52 Kratos.ModelPartIO(mdpa_file_name, import_flags).ReadModelPart(model_part)
53
54
55@KratosUnittest.skipIfApplicationsNotAvailable("MetisApplication")

Callers 1

ReadModelPartFunction · 0.85

Calls 2

ReadModelPartMethod · 0.45
ModelPartIOMethod · 0.45

Tested by

no test coverage detected