imcs-compsim / MIRCO

A shared-memory parallel BEM code for the contact of rough surfaces
MIT License
2 stars 2 forks source link

Make MIRCO suitable to use as a Library #64

Closed RShaw026 closed 1 year ago

RShaw026 commented 1 year ago

Description and Context

Earlier, reference height for topology generation was hard-coded. Now, the user can define the max topology height. Header files are now copied to the build directory. A framework test is added to test RMG and user-defined max topology height. Also, printing the results is taken out of the Evaluate function to the main function to avoid cluttering the screen when calling Evaluate from BACI.

Related Issues and Pull Requests

How Has This Been Tested?

ctest is working. Also, the generated build files are imported into BACI, and a simple block-over-block problem is solved in BACI using MIRCO functions.

Checklist

Additional Information

Interested Parties / Possible Reviewers

@NoraHagmeyer @mayrmt
RShaw026 commented 1 year ago

@mayrmt I am not sure if I understood your comment correctly. But currently, all the std::cout statements are in the main.cpp file, and not inside the Evaluate call. Therefore, if someone calls MIRCO through BACI, there won't be any screen output from MIRCO. However, if someone runs an input file with mirco, it will print the mean pressure and the elapsed time on the screen.

mayrmt commented 1 year ago

@RShaw026

I am not sure if I understood your comment correctly. But currently, all the std::cout statements are in the main.cpp file, and not inside the Evaluate call.

My bad. I didn't realize that. Then, everything is good w.r.t. output.