I have implemented PETSc for my unstructured FVM problem by external package Sundials, I want to move to a parallel version. I just read the examplehttp://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-current/src/dm/ao/examp... I want know if my understanding is right: DA is only for structured grid; There is not too much difference betweenhttp://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-current/src/ts/examples... andhttp://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-current/src/ts/examples..., because DA can manage most parallel related staff. At last is there any example I can learn to get a parallel version of my problem. Thanks!
I have implemented PETSc for my unstructured FVM problem by external package Sundials, I want to move to a parallel version. I just read the example http://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-current/src/dm/ao/examp...
I want know if my understanding is right:
DA is only for structured grid; Yes, only for logically structured grids.
There is not too much difference between http://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-current/src/ts/examples... and http://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-current/src/ts/examples..., because DA can manage most parallel related staff.
They solve same problem, but illustrate different TS solvers and approaches. Although ex4.c uses DA in main() to create vectors and is intended to illustrate a non-linear TS solver, its function evaluation does use DA. ex4.c is not a good example for using DA. Almost all petsc objects and solvers are parallel, which manage parallel data distribution and implementation. DA is one of objects. Hong
At last is there any example I can learn to get a parallel version of my problem.
Thanks!
Sorry, I mean
They solve same problem, but illustrate different TS solvers and approaches. Although ex4.c uses DA in main() to create vectors and is intended to illustrate a non-linear TS solver, its function evaluation does use DA. ex4.c is not a good example for using DA. dose NOT use DA.
Hong
Almost all petsc objects and solvers are parallel, which manage parallel data distribution and implementation. DA is one of objects.
Hong
At last is there any example I can learn to get a parallel version of my problem.
Thanks!
participants (2)
-
Hong Zhang -
yuxuan