On 11/4/24 21:43, Sparsh Sinha wrote:
*Is there any way to print the system_matrix to a single file either by
using 'print()' or ‘write_ascii()’ function? Or do I need to use some
other method for printing to a single file?*
I would suggest to let every process print into its own file (say,
matrix-xxx.txt, where xxx is
std::to_string(Utilities::MPI::this_mpi_process(MPI_COMM_WORLD))
). Then, after you run is finished, do
cat matrix-*.txt > matrix.txt
to collate all of these files into one.
Best
WB
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/dealii/37c3fb95-48cc-4bc4-b584-548d00cfb9bf%40colostate.edu.