Searched refs:newblock (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/snes/impls/multiblock/ |
| H A D | multiblock.c | 537 BlockDesc newblock, next = mb->blocks; in SNESMultiblockSetFields_Default() local 550 PetscCall(PetscNew(&newblock)); in SNESMultiblockSetFields_Default() 552 PetscCall(PetscStrallocpy(name, &newblock->name)); in SNESMultiblockSetFields_Default() 556 PetscCall(PetscMalloc1(len + 1, &newblock->name)); in SNESMultiblockSetFields_Default() 557 PetscCall(PetscSNPrintf(newblock->name, len, "%" PetscInt_FMT, mb->numBlocks)); in SNESMultiblockSetFields_Default() 559 newblock->nfields = n; in SNESMultiblockSetFields_Default() 561 PetscCall(PetscMalloc1(n, &newblock->fields)); in SNESMultiblockSetFields_Default() 562 PetscCall(PetscArraycpy(newblock->fields, fields, n)); in SNESMultiblockSetFields_Default() 564 newblock->next = NULL; in SNESMultiblockSetFields_Default() 566 PetscCall(SNESCreate(PetscObjectComm((PetscObject)snes), &newblock->snes)); in SNESMultiblockSetFields_Default() [all …]
|