Home
last modified time | relevance | path

Searched refs:isbinary (Results 1 – 25 of 38) sorted by relevance

12

/petsc/src/vec/vec/tutorials/
H A Dex10.c17 PetscBool vstage2, vstage3, mpiio_use, isbinary = PETSC_FALSE; in main() local
31 PetscCall(PetscOptionsGetBool(NULL, NULL, "-binary", &isbinary, NULL)); in main()
66 if (isbinary) { in main()
98 if (isbinary) { in main()
/petsc/src/vec/vec/tests/
H A Dex100cu.cu18 PetscBool vstage2, vstage3, mpiio_use, isbinary = PETSC_FALSE; in main() local
38 PetscCall(PetscOptionsGetBool(NULL, NULL, "-binary", &isbinary, NULL)); in main()
72 if (isbinary) { in main()
96 if (isbinary) { in main()
/petsc/src/dm/tests/
H A Dex33.c12 PetscBool flg2, flg3, isbinary, mpiio; in main() local
50 PetscCall(PetscOptionsHasName(NULL, NULL, "-binary", &isbinary)); in main()
70 if (isbinary) { in main()
94 if (isbinary) { in main()
/petsc/src/vec/is/utils/
H A Disio.c104 PetscBool isbinary, ishdf5; in ISLoad_Default() local
107 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in ISLoad_Default()
109 if (isbinary) { in ISLoad_Default()
H A Disltog.c364 PetscBool isascii, isbinary; in ISLocalToGlobalMappingView() local
373 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in ISLocalToGlobalMappingView()
403 } else if (isbinary) { in ISLocalToGlobalMappingView()
440 PetscBool isbinary, skipHeader; in ISLocalToGlobalMappingLoad() local
445 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in ISLocalToGlobalMappingLoad()
446 …PetscCheck(isbinary, PetscObjectComm((PetscObject)viewer), PETSC_ERR_SUP, "Invalid viewer of type … in ISLocalToGlobalMappingLoad()
/petsc/src/sys/error/
H A Derr.c457 PetscBool isascii, isbinary; in PetscIntViewNumColumns() local
469 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in PetscIntViewNumColumns()
492 } else if (isbinary) { in PetscIntViewNumColumns()
557 PetscBool isascii, isbinary; in PetscRealViewNumColumns() local
569 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in PetscRealViewNumColumns()
600 } else if (isbinary) { in PetscRealViewNumColumns()
665 PetscBool isascii, isbinary; in PetscScalarViewNumColumns() local
677 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in PetscScalarViewNumColumns()
712 } else if (isbinary) { in PetscScalarViewNumColumns()
/petsc/src/ksp/ksp/interface/
H A Ditcreate.c45 PetscBool isbinary; in KSPLoad() local
53 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in KSPLoad()
54 …PetscCheck(isbinary, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Invalid viewer; open viewer with Petsc… in KSPLoad()
108 PetscBool isascii, isbinary, isdraw, isstring; in KSPView() local
120 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in KSPView()
154 } else if (isbinary) { in KSPView()
/petsc/src/vec/vec/utils/
H A Dvecio.c196 PetscBool isbinary; in VecLoad_Default() local
205 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in VecLoad_Default()
213 if (isbinary) { in VecLoad_Default()
/petsc/src/ts/adapt/interface/
H A Dtsadapt.c200 PetscBool isbinary; in TSAdaptLoad() local
206 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in TSAdaptLoad()
207 …PetscCheck(isbinary, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Invalid viewer; open viewer with Petsc… in TSAdaptLoad()
248 PetscBool isascii, isbinary, isnone, isglee; in TSAdaptView() local
256 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in TSAdaptView()
281 } else if (isbinary) { in TSAdaptView()
/petsc/src/sys/classes/bag/
H A Dbag.c650 PetscBool isascii, isbinary; in PetscBagView() local
657 PetscCall(PetscObjectTypeCompare((PetscObject)view, PETSCVIEWERBINARY, &isbinary)); in PetscBagView()
712 } else if (isbinary) { in PetscBagView()
807 PetscBool isbinary; in PetscBagLoad() local
820 PetscCall(PetscObjectTypeCompare((PetscObject)view, PETSCVIEWERBINARY, &isbinary)); in PetscBagLoad()
821 PetscCheck(isbinary, PETSC_COMM_SELF, PETSC_ERR_SUP, "No support for this viewer type"); in PetscBagLoad()
/petsc/src/dm/impls/da/
H A Dda1.c12 PetscBool isascii, isdraw, isglvis, isbinary; in DMView_DA_1d() local
24 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in DMView_DA_1d()
113 } else if (isbinary) { in DMView_DA_1d()
H A Dgr2.c694 PetscBool isbinary, isMPIIO; in VecView_MPI_DA() local
696 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in VecView_MPI_DA()
697 if (isbinary) { in VecView_MPI_DA()
917 PetscBool isbinary; in VecLoad_Default_DA() local
929 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in VecLoad_Default_DA()
931 if (isbinary) { in VecLoad_Default_DA()
H A Dda2.c7 PetscBool isascii, isdraw, isglvis, isbinary; in DMView_DA_2d() local
19 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in DMView_DA_2d()
133 } else if (isbinary) { in DMView_DA_2d()
/petsc/src/snes/utils/
H A Ddmsnes.c46 PetscBool isascii, isbinary; in DMSNESView() local
50 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in DMSNESView()
60 } else if (isbinary) { in DMSNESView()
/petsc/src/ksp/pc/interface/
H A Dprecon.c1723 PetscBool isbinary; in PCLoad() local
1730 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in PCLoad()
1731 …PetscCheck(isbinary, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Invalid viewer; open viewer with Petsc… in PCLoad()
1796 PetscBool isascii, isstring, isbinary, isdraw, pop = PETSC_FALSE; in PCView() local
1809 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in PCView()
1851 } else if (isbinary) { in PCView()
/petsc/src/ts/utils/
H A Ddmts.c98 PetscBool isascii, isbinary; in DMTSView() local
102 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in DMTSView()
112 } else if (isbinary) { in DMTSView()
/petsc/src/vec/is/is/impls/general/
H A Dgeneral.c464 PetscBool isascii, isbinary, ishdf5, compress; in ISView_General() local
470 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in ISView_General()
519 } else if (isbinary) { in ISView_General()
/petsc/src/mat/impls/sell/mpi/
H A Dmpisell.c537 PetscBool isdraw, isascii, isbinary; in MatView_MPISELL_ASCIIorDraworSocket() local
544 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in MatView_MPISELL_ASCIIorDraworSocket()
583 } else if (isbinary) { in MatView_MPISELL_ASCIIorDraworSocket()
671 PetscBool isascii, isdraw, issocket, isbinary; in MatView_MPISELL() local
676 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in MatView_MPISELL()
678 …if (isascii || isdraw || isbinary || issocket) PetscCall(MatView_MPISELL_ASCIIorDraworSocket(mat, … in MatView_MPISELL()
/petsc/src/dm/impls/patch/
H A Dpatch.c338 PetscBool isascii, isbinary; in DMView_Patch() local
344 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in DMView_Patch()
/petsc/src/vec/is/sf/impls/basic/
H A Dsfbasic.c343 PetscBool isdraw, isbinary; in PetscSFView_Basic() local
345 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in PetscSFView_Basic()
346 …if ((isascii && viewer->format == PETSC_VIEWER_ASCII_MATLAB) || isdraw || isbinary) PetscCall(Pets… in PetscSFView_Basic()
/petsc/src/vec/vec/impls/seq/
H A Dbvec2.c429 PetscBool isdraw, isascii, issocket, isbinary; in VecView_Seq() local
448 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in VecView_Seq()
467 } else if (isbinary) { in VecView_Seq()
/petsc/src/mat/impls/sbaij/seq/
H A Dsbaij.c486 PetscBool isascii, isbinary, isdraw; in MatView_SeqSBAIJ() local
490 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in MatView_SeqSBAIJ()
494 } else if (isbinary) { in MatView_SeqSBAIJ()
2075 PetscBool isbinary; in MatLoad_SeqSBAIJ() local
2078 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in MatLoad_SeqSBAIJ()
2079 …PetscCheck(isbinary, PetscObjectComm((PetscObject)viewer), PETSC_ERR_SUP, "Viewer type %s not yet … in MatLoad_SeqSBAIJ()
/petsc/src/vec/vec/impls/mpi/
H A Dpdvec.c639 PetscBool isascii, isbinary, isdraw; in VecView_MPI() local
656 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in VecView_MPI()
673 } else if (isbinary) { in VecView_MPI()
/petsc/src/vec/is/is/interface/
H A Dindex.c1660 PetscBool isbinary, ishdf5; in ISLoad() local
1666 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in ISLoad()
1668 …PetscCheck(isbinary || ishdf5, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Invalid viewer; open viewer … in ISLoad()
/petsc/src/mat/impls/sbaij/mpi/
H A Dmpisbaij.c1003 PetscBool isascii, isdraw, issocket, isbinary; in MatView_MPISBAIJ() local
1009 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in MatView_MPISBAIJ()
1011 else if (isbinary) PetscCall(MatView_MPISBAIJ_Binary(mat, viewer)); in MatView_MPISBAIJ()
2498 PetscBool isbinary; in MatLoad_MPISBAIJ() local
2501 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERBINARY, &isbinary)); in MatLoad_MPISBAIJ()
2502 …PetscCheck(isbinary, PetscObjectComm((PetscObject)viewer), PETSC_ERR_SUP, "Viewer type %s not yet … in MatLoad_MPISBAIJ()

12