diff --git a/examples/example_lap1.c b/examples/example_lap1.c index 38b3f90a89df038613d5022cc16e65a2f4522612..89b67cb6540a550433c6d86dac2ba5ffbfcc56d2 100644 --- a/examples/example_lap1.c +++ b/examples/example_lap1.c @@ -127,6 +127,9 @@ spm_example_create_laplacian( spmatrix_t *spm ) spm->nnz = nnz; spm->dof = 1; + /* The full matrix is replicated on all nodes */ + spm->replicated = 1; + /* * Update the computed fields. * If dof < 0, please see example_user2.c diff --git a/examples/example_lap2.c b/examples/example_lap2.c index d82fa56201c7885c059e0ab81904577c793ec943..5db98f90913635caebac9d01daa66ef510c1ec0b 100644 --- a/examples/example_lap2.c +++ b/examples/example_lap2.c @@ -146,6 +146,9 @@ spm_example_create_laplacian( spmatrix_t *spm ) spm->rowptr = rowptr; spm->values = values; + /* The full matrix is replicated on all nodes */ + spm->replicated = 1; + /* * Update the computed fields. */ diff --git a/examples/example_mdof1.c b/examples/example_mdof1.c index e81177bba027dd6eebced4c12aaf87059ae9f8f5..d6bc18a6714d95590cac2882ec277d8e2b33b89c 100644 --- a/examples/example_mdof1.c +++ b/examples/example_mdof1.c @@ -179,6 +179,9 @@ spm_example_create_laplacian( spmatrix_t *spm ) spm->nnz += dim1 * (dim2 - 1) * dim3; /* Connexions along second axe */ spm->nnz += dim1 * dim2 * (dim3 - 1); /* Connexions along third axe */ + /* The full matrix is replicated on all nodes */ + spm->replicated = 1; + /* Force gN to allocate dof array in spmAlloc() */ spm->gN = spm->n; spm->dof = -1; diff --git a/examples/example_mdof2.c b/examples/example_mdof2.c index 394f48550f154fe9473e2782dc4c8ec9c50c9679..de2ffa94ad7ca6c1b8cbf577d5729966b1f8707f 100644 --- a/examples/example_mdof2.c +++ b/examples/example_mdof2.c @@ -173,6 +173,9 @@ spm_example_create_laplacian( spmatrix_t *spm ) spm->rowptr = rowptr; spm->values = values; + /* The full matrix is replicated on all nodes */ + spm->replicated = 1; + /* * Update the computed fields. */