MPh-py / MPh

Pythonic scripting interface for Comsol Multiphysics
https://mph.readthedocs.io
MIT License
274 stars 70 forks source link

Add `problems()` method to `Model` class #91

Closed john-hen closed 2 years ago

john-hen commented 2 years ago

The Model class gets a new API method problems(). All it does is call the problems() method of its root node. This gives users an easy way to check if there are any problems reported throughout the model, by testing if model.problems(): in application code, to then act accordingly.