Home
last modified time | relevance | path

Searched refs:PETSC_REAL (Results 1 – 25 of 41) sorted by relevance

12

/petsc/src/sys/classes/viewer/tests/ !
H A Dex6.c35 PetscCall(PetscViewerBinaryWrite(viewer, &rdata, 1, PETSC_REAL)); in TestWrite()
40 PetscCall(PetscViewerBinaryWrite(subviewer, &rdata, 1, PETSC_REAL)); in TestWrite()
45 PetscCall(PetscViewerBinaryWriteAll(viewer, &rdata, 1, s, t, PETSC_REAL)); in TestWrite()
50 PetscCall(PetscViewerBinaryWrite(subviewer, &rdata, 1, PETSC_REAL)); in TestWrite()
55 PetscCall(PetscViewerBinaryWrite(viewer, &rdata, 1, PETSC_REAL)); in TestWrite()
69 PetscCall(PetscViewerBinaryRead(viewer, &rdata, 1, NULL, PETSC_REAL)); in TestRead()
77 PetscCall(PetscViewerBinaryRead(subviewer, &rdata, 1, NULL, PETSC_REAL)); in TestRead()
84 PetscCall(PetscViewerBinaryReadAll(viewer, &rdata, 1, s, t, PETSC_REAL)); in TestRead()
92 PetscCall(PetscViewerBinaryRead(subviewer, &rdata, 1, NULL, PETSC_REAL)); in TestRead()
99 PetscCall(PetscViewerBinaryRead(viewer, &rdata, 1, NULL, PETSC_REAL)); in TestRead()
/petsc/include/ !
H A Dpetscsystypes.h735 #define PETSC_REAL PETSC_FLOAT macro
737 #define PETSC_REAL PETSC_DOUBLE macro
739 #define PETSC_REAL PETSC___FLOAT128 macro
741 #define PETSC_REAL PETSC___FP16 macro
743 #define PETSC_REAL PETSC_DOUBLE macro
749 #define PETSC_SCALAR PETSC_REAL
/petsc/src/ts/trajectory/impls/visualization/ !
H A Dtrajvisualization.c45 PetscCall(PetscViewerBinaryWrite(viewer, &time, 1, PETSC_REAL)); in TSTrajectorySet_Visualization()
59 PetscCall(PetscViewerBinaryWrite(viewer, &time, 1, PETSC_REAL)); in TSTrajectorySet_Visualization()
62 PetscCall(PetscViewerBinaryWrite(viewer, &tprev, 1, PETSC_REAL)); in TSTrajectorySet_Visualization()
/petsc/src/ts/trajectory/impls/basic/ !
H A Dtrajbasic.c22 PetscCall(PetscViewerBinaryWrite(tjbasic->viewer, &time, 1, PETSC_REAL)); in TSTrajectorySet_Basic()
33 PetscCall(PetscViewerBinaryWrite(tjbasic->viewer, &tprev, 1, PETSC_REAL)); in TSTrajectorySet_Basic()
70 PetscCall(PetscViewerBinaryRead(viewer, t, 1, NULL, PETSC_REAL)); in TSTrajectoryGet_Basic()
80 PetscCall(PetscViewerBinaryRead(viewer, &timepre, 1, NULL, PETSC_REAL)); in TSTrajectoryGet_Basic()
/petsc/src/dm/tutorials/ !
H A Dswarm_ex1.c31 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "viscosity", 1, PETSC_REAL)); in ex1_1()
32 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "strain", 1, PETSC_REAL)); in ex1_1()
109 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "viscosity", 1, PETSC_REAL)); in ex1_2()
110 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "strain", 1, PETSC_REAL)); in ex1_2()
200 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "viscosity", 1, PETSC_REAL)); in ex1_3()
201 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "coorx", 1, PETSC_REAL)); in ex1_3()
202 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "coory", 1, PETSC_REAL)); in ex1_3()
366 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "viscosity", 1, PETSC_REAL)); in ex1_4()
367 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "coorx", 1, PETSC_REAL)); in ex1_4()
368 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "coory", 1, PETSC_REAL)); in ex1_4()
H A Dswarm_ex2.c24 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "viscosity", 1, PETSC_REAL)); in ex2_1()
25 PetscCall(DMSwarmRegisterPetscDatatypeField(dms, "strain", 3, PETSC_REAL)); in ex2_1()
H A Dex21.c99 PetscCall(DMSwarmRegisterPetscDatatypeField(swarm, "phi", 1, PETSC_REAL)); in pic_advect()
100 PetscCall(DMSwarmRegisterPetscDatatypeField(swarm, "region", 1, PETSC_REAL)); in pic_advect()
/petsc/src/sys/classes/viewer/impls/binary/ftn-custom/ !
H A Dzbinvf90.c38 *ierr = PetscViewerBinaryWrite(v, a, *len, PETSC_REAL); in petscviewerbinarywritereal_()
62 *ierr = PetscViewerBinaryRead(v, a, *len, count, PETSC_REAL); in petscviewerbinaryreadreal_()
/petsc/include/petsc/finclude/ !
H A Dpetscsysbase.h88 #define PETSC_REAL PETSC_FLOAT macro
91 #define PETSC_REAL PETSC___FLOAT128
94 #define PETSC_REAL PETSC_DOUBLE
/petsc/src/sys/fileio/ !
H A Dsysio.c234 else if (pdtype == PETSC_REAL) PetscCall(PetscByteSwapReal((PetscReal *)data, count)); in PetscByteSwap()
312 if ((type == PETSC_REAL || type == PETSC_COMPLEX) && readdouble) { in PetscBinaryRead()
313 PetscInt cnt = num * ((type == PETSC_REAL) ? 1 : 2); in PetscBinaryRead()
338 if ((type == PETSC_REAL || type == PETSC_COMPLEX) && readdouble) { in PetscBinaryRead()
339 PetscInt i, cnt = num * ((type == PETSC_REAL) ? 1 : 2); in PetscBinaryRead()
440 if ((type == PETSC_SCALAR || type == PETSC_REAL || type == PETSC_COMPLEX) && writedouble) { in PetscBinaryWrite()
455 else if (wtype == PETSC_REAL) m *= sizeof(PetscReal); in PetscBinaryWrite()
483 …if ((type == PETSC_SCALAR || type == PETSC_REAL || type == PETSC_COMPLEX) && writedouble) PetscCal… in PetscBinaryWrite()
/petsc/src/sys/tests/ !
H A Dex49.c31 …PetscCheck(dtype == PETSC_REAL, PETSC_COMM_WORLD, PETSC_ERR_ARG_WRONG, "Found wrong datatype for r… in main()
/petsc/src/ts/trajectory/impls/singlefile/ !
H A Dsinglefile.c21 PetscCall(PetscViewerBinaryWrite(sf->viewer, &time, 1, PETSC_REAL)); in TSTrajectorySet_Singlefile()
/petsc/src/sys/error/ !
H A Dcheckptr.c110 case PETSC_REAL: { in PetscCheckPointer()
H A Derr.c622 PetscCall(PetscViewerBinaryWrite(viewer, array, Ntotal, PETSC_REAL)); in PetscRealViewNumColumns()
628 PetscCall(PetscViewerBinaryWrite(viewer, (void *)idx, N, PETSC_REAL)); in PetscRealViewNumColumns()
/petsc/src/sys/classes/viewer/impls/hdf5/ftn-custom/ !
H A Dzhdf5f.c56 *ierr = PetscViewerHDF5WriteAttribute(*viewer, c1, c2, PETSC_REAL, value); in petscviewerhdf5writeattributereal_()
/petsc/src/sys/classes/bag/ !
H A Dbag.c172 item->dtype = PETSC_REAL; in PetscBagRegisterRealArray()
416 item->dtype = PETSC_REAL; in PetscBagRegisterReal()
590 } else if (nitem->dtype == PETSC_REAL) { in PetscBagSetFromOptions()
671 } else if (nitem->dtype == PETSC_REAL) { in PetscBagView()
842 } else if (dtype == (PetscInt)PETSC_REAL) { in PetscBagLoad()
843 … PetscCall(PetscViewerBinaryRead(view, ((char *)bag) + nitem->offset, msize, NULL, PETSC_REAL)); in PetscBagLoad()
/petsc/src/dm/impls/swarm/tests/ !
H A Dex3.c46 PetscCall(DMSwarmRegisterPetscDatatypeField(*sw, "kinematics", 2, PETSC_REAL)); in CreateParticles()
H A Dex8.c62 PetscCall(DMSwarmRegisterPetscDatatypeField(*sw, "velocity", dim, PETSC_REAL)); in CreateSwarm()
H A Dex5.c64 PetscCall(DMSwarmRegisterPetscDatatypeField(*sw, "velocity", dim, PETSC_REAL)); in CreateSwarm()
66 PetscCall(DMSwarmRegisterPetscDatatypeField(*sw, "initCoordinates", dim, PETSC_REAL)); in CreateSwarm()
67 PetscCall(DMSwarmRegisterPetscDatatypeField(*sw, "initVelocity", dim, PETSC_REAL)); in CreateSwarm()
H A Dex4.c102 PetscCall(DMSwarmRegisterPetscDatatypeField(*sw, "velocity", dim, PETSC_REAL)); in CreateSwarm()
104 PetscCall(DMSwarmRegisterPetscDatatypeField(*sw, "initCoordinates", dim, PETSC_REAL)); in CreateSwarm()
/petsc/src/vec/vec/tests/ !
H A Dex48.c137 case PETSC_REAL: in compare()
227 PetscDataType types[nt] = {PETSC_BOOL, PETSC_INT, PETSC_REAL, PETSC_STRING, PETSC_STRING}; in CapsuleCreate()
779 PetscCall(PetscViewerHDF5ReadAttribute(viewer, "/", "attr_0_real", PETSC_REAL, NULL, &reals[0])); in testAttributesDefaultValue()
781 …PetscCall(PetscViewerHDF5ReadAttribute(viewer, "/", "attr_0_real", PETSC_REAL, &reals[1], &reals[2… in testAttributesDefaultValue()
782 …PetscCall(PetscViewerHDF5ReadAttribute(viewer, "/", "attr_nonExisting_real", PETSC_REAL, &reals[1]… in testAttributesDefaultValue()
/petsc/src/dm/field/tutorials/ !
H A Dex1.c49 PetscCall(DMFieldEvaluate(field, points, PETSC_REAL, rB, rD, rH)); in TestEvaluate()
92 PetscCall(DMFieldEvaluateFE(field, cellIS, quad, PETSC_REAL, rB, rD, rH)); in TestEvaluateFE()
135 PetscCall(DMFieldEvaluateFV(field, cellIS, PETSC_REAL, rB, rD, rH)); in TestEvaluateFV()
/petsc/src/sys/objects/ !
H A Dptype.c203 if (*found) *ptype = PETSC_REAL; in PetscDataTypeFromString()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/ !
H A Dpetscsys.pxi5 PETSC_REAL
/petsc/src/dm/field/interface/ !
H A Ddmfield.c454 PetscCall(DMFieldEvaluateFE(field, pointIS, quad, PETSC_REAL, g->v, g->J, NULL)); in DMFieldCreateFEGeom()

12