Skip to content

Create venv in participant folder, not in common solver folder. #567

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conversation

BenjaminRodenberg
Copy link
Member

I think the usage of the venv in #557 introduced some form of race condition if the participants try to create the venv at the same time at the same place (../solver-fenics/.venv). This happens, for example, in this test.

To avoid this race condition I would suggest to create the venv in the folder of the participant (dirichlet/neumann-fenics) but still keep the requirements.txt (to avoid duplication) in solver-fenics.

@NiklasVin this also applies to the other cases in #563. I would suggest to only deal with the partitioned heat conduction case here. If merging this PR fixes the test mentioned above we can roll out this improvement to all cases,

@BenjaminRodenberg BenjaminRodenberg self-assigned this Sep 5, 2024
@BenjaminRodenberg BenjaminRodenberg merged commit b93a030 into precice:develop Sep 6, 2024
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant