Skip to content

Conversation

marinlauber
Copy link

This PR adds Julia participants to the resonant-circuit.

@MakisH MakisH self-assigned this Jul 28, 2025
Copy link
Member

@MakisH MakisH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution, @marinlauber!

I still have not managed to run it (first time I try out Julia and our Julia bindings), but I added some first comments that you could already address if you want.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our run scripts, we have some more features that we would need here for consistency as well:

  • shell is bash, set via env
  • we set -e -u to make the script more robust
  • we capture all logging into a file

See the python variant for an example.

It would be good if the script also installed the Julia bindings, in case they are not already installed. Similarly to the Python example.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've addressed most of those, for the Julia binding installation I just added a line in run.sh that initialises the environment using the packages specified in the Project.toml file (this file is similar to setting up a Python environment to run the project).
Not sure if that's why you had in mind.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick response. Yes, this is exactly what I had in mind.

I now still need to test this (currently precice/PreCICE.jl#70 is blocking me).

* *MATLAB* A solver using the [MATLAB bindings](https://precice.org/installation-bindings-matlab.html).
Before running this tutorial, follow the [instructions](https://precice.org/installation-bindings-matlab.html) to correctly install the MATLAB bindings.
* *Python* A solver using the preCICE [Python bindings](https://precice.org/installation-bindings-python.html).
* *Julia* A solver using the preCICE [Julia bindings](https://precice.org/installation-bindings-julia.html).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-reminder: We will need also an edit in https://precice.org/tutorials.html

title: Resonant Circuit
permalink: tutorials-resonant-circuit.html
keywords: MATLAB, Python
keywords: MATLAB, Python, Julia
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest of the page seems to be a bit focused on MATLAB. This is a good chance to change this (I can do).

@marinlauber
Copy link
Author

@MakisH, I've modified the example to be more in line with the other examples, the run.sh script now also generates the Project.toml file and installs the PreCICE.jl binding (with the ODE solver lib).

@marinlauber
Copy link
Author

@MakisH is there anything from my side that needs to be done?

@MakisH
Copy link
Member

MakisH commented Aug 27, 2025

@MakisH is there anything from my side that needs to be done?

Not yet, at least not from my side. I would like to manage to run this first, currently blocked by precice/PreCICE.jl#70.

I will come back to you, but I cannot promise that this will be before the workshop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants