First I compile the cpp sources from the cpp folder using the CMakeLists.txt provided with success (no errors). Secondly, I’m trying to compile the cpp sources in the “python” folder, but I get the following error when I run cmake using the CMakeLists.txt provided in this folder :
"CMake Error at CMakeLists.txt:40 (find_package):
Could not find a package configuration file provided by “DOLFINX_CONTACT”
with any of the following names:
DOLFINX_CONTACTConfig.cmake
dolfinx_contact-config.cmake
"
Clearly, the compiled library path is not recognized. I’ve already tried to include the folder where the file DOLFINX_CONTACTConfig.cmake is found via
I know that this issue is more Cmake stuff, but could someone help me with some guidance on the steps necessary to compile rest of the library and to execute some test ?
Obs: there is no installation instructions in readme.
No worries and thanks for your reply.
In anycase, regardless of the version and small bugs, it would be helpful to know the logic of compilation steps and linkings …
@Felipe_Rocha
I’ve just pressed merge on a pull request that puts it up to date with 0.9.0 of DOLFINx. Give it half an hour-one hour, and the main branch (with installation instructions in the readme should work)
Hi, sorry for my late response.
Does the CPP interface is needed for Python or Python interface compilation deals with everything needed for CPP?
I had problems with Ninja, is there another way of compiling the CPP?
I still have problems with the linking of the DOLFINX_CONTACT library when running python file installation script.
`Could not find a package configuration file provided by “DOLFINX_CONTACT”
with any of the following names:
DOLFINX_CONTACTConfig.cmake
dolfinx_contact-config.cmake
Add the installation prefix of "DOLFINX_CONTACT" to CMAKE_PREFIX_PATH or
set "DOLFINX_CONTACT_DIR" to a directory containing one of the above files.
If "DOLFINX_CONTACT" provides a separate development package or SDK, be
sure it has been installed.
Just to make sure. Dolfinx-contact can also handle two-body problems right? it seems that in the python/demos/hertz_contact folder there is one example of two cylinders, although I don’t find the meshes. Just found the folder meshing, the answer should be there.
Yes,
DOLFINx-contact/asimov contact is made for two-body problems.
However, please note that the two bodies should be part of the same dolfinx.mesh.Mesh object.