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)
| 40 | |
| 41 | |
| 42 | def 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") |
no test coverage detected