Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Batch system can now plot ECGs #64

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Conversation

bergolho
Copy link
Contributor

Dear Sachetto,

In this pull request, I made a few changes to the writing of the ECG data to a file. This is because when using the MPI batch system, the previous configuration using only the "filename" variable was not working when the batch structure creates the different combinations for the variables.

To fix this problem, my solution was to include the "output_dir" variable as an additional parameter to the "init_pseudo_bidomain_cpu" function. Next, I concatenate the strings with the "output_dir" path and "/ecg.txt" using a simple "sprintf" statement. Because of that, there are minor changes to the "monodomain_solver.c", "ecg.c" and "ecg_config.h" files.

Furthermore, there is a new "main_clip_mesh.c" program that can clip a section of the mesh, retrieve the extra data inside the volumes and write this into a new ".alg" file.

The matrix assembly function from Albert was moved to a custom function.

Finally, there is a new script to calculate the equivalent conductivity if the intracellular and extracellular conductivities are given.

Best regards,
Lucas

@rsachetto rsachetto merged commit c1ed73b into rsachetto:master Feb 15, 2024
3 checks passed
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