Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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