[petsc-users] Set the directory of output file
Likun Tan
tlk0812 at hotmail.com
Tue May 27 15:17:46 CDT 2014
Hello,
I want to create and write my simulation result in a binary file called result.dat, but I want to set my file in a different folder, say /home/username/output
I am using
PetscViewerBinaryOpen(PETSC_COMM_WORLD, result.dat, FILE_MODE_WRITE, & view)
But this will create the file in the current folder by default. How could I modify the command to set a new path? Thank you.
More information about the petsc-users
mailing list