Version 2.0.0
4 unresolved threads
4 unresolved threads
Waves 2.0.0
Context
This MR removes the compatibility with python 2 and adds the capability to easily link another code to waves using CMake, as well as a feature to read results from the disk.
Changes
- Remove all import from the future libs of python, the code is now compatible with python 3 only
- Add a waves-config file allowing to easily find and link waves to another code using CMake
- Add a
load
method to GmshImport to read results from the disk (restart/checkpoint feature) - Add a UnitTest class to test the classes and methods in tbox which can not be accessed directly through python
- Rename katropton to katoptron, although this was done in !59 (merged), it was not referenced by a tag
- Various minor cleaning and bugfixing
Comments
- The
GmshImport
andGmshExport
classes need to be upgraded to deal with gmsh format 4, as well as to read and write data in binary - The new method
GmshImport::load
contains a lot of repeated code, similarly toGmshExport::save
, there might be a way to improve this
Tests
Passed on ubuntu20.04 (python 3.8.2), and msys2 (python 3.8.1).
Edited by Adrien Crovato
Merge request reports
Activity
Filter activity
added cleaning enhancement labels
macOS / clang:
The build produces interesting warnings related to missing
override
keyword:In file included from /Users/rboman/dev/waves/tbox/_src/tboxw.h:31: /Users/rboman/dev/waves/tbox/src/wFct2.h:134:18: warning: 'write' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] virtual void write(std::ostream &out) const; ^ /Users/rboman/dev/waves/tbox/src/wFct2.h:100:18: note: overridden virtual function is here virtual void write(std::ostream &out) const;
I need to reinstall numpy/matplotlib to run the tests
Edited by Boman Romain
34 35 35 36 ## References 36 37 37 Kim thesis 38 Liegeois Kim, [GMRES with embedded ensemble propagation for the efficient solution of parametric linear systems in uncertainty quantification of computational models with application to the thermomechanical simulation of an ITER front mirror](http://hdl.handle.net/2268/249334), University of Liège, 2020. 38 39 39 40 Adrien thesis 40 41 41 Kim Paper - tbox/src/wUnitTest.h 0 → 100644
15 */ 16 17 #ifndef WUNITTEST_H 18 #define WUNITTEST_H 19 20 #include "tbox.h" 21 #include "wObject.h" 22 23 namespace tbox 24 { 25 26 /** 27 * @brief Tests for tbox 28 * @authors Adrien Crovato 29 */ 30 class TBOX_API UnitTest : public fwk::wSharedObject changed this line in version 5 of the diff
added 1 commit
- 9e44b8c1 - Cleaning useless shared_ptr, missing override, virtual destructor
Please register or sign in to reply