Home
last modified time | relevance | path

Searched refs:precision (Results 1 – 25 of 115) sorted by relevance

12345

/petsc/share/petsc/matlab/
H A DgeneratePetscTestFiles.m16 PetscBinaryWrite('spd-real-int32-float64',A,b, 'indices','int32','precision','float64');
17 [At,bt] = PetscBinaryRead('spd-real-int32-float64', 'indices','int32','precision','float64');
24 PetscBinaryWrite('spd-real-int64-float64',A, b,'indices','int64','precision','float64');
25 [At,bt] = PetscBinaryRead('spd-real-int64-float64','indices','int64','precision','float64');
33 PetscBinaryWrite('spd-real-int32-float32',A,b, 'indices','int32','precision','float32');
34 [At,bt] = PetscBinaryRead('spd-real-int32-float32', 'indices','int32','precision','float32');
41 PetscBinaryWrite('spd-real-int64-float32',A,b,'indices','int64','precision','float32');
42 [At,bt] = PetscBinaryRead('spd-real-int64-float32','indices','int64','precision','float32');
57 PetscBinaryWrite('ns-real-int32-float64',A,b,'indices','int32','precision','float64');
58 [At,bt] = PetscBinaryRead('ns-real-int32-float64','indices','int32','precision','float64');
[all …]
H A DPetscBinaryRead.m3 …['complex',false or true],['indices','int32' or 'int64'],['cell',cnt],['precision','float64' or 'f…
25 % 'precision','float32' indicates the PETSc program was built with --with-precision=single
43 precision = 'float64'; variable
53 if ischar(varargin{l}) && strcmpi(varargin{l},'precision')
55 precision = varargin{l+1}; variable
67 if strcmp(precision,'float128')
68 precision = 'float64'; variable
99 s = read(fd,2*m*n,precision);
104 s = read(fd,m*n,precision);
116 s = read(fd,2*nz,precision);
[all …]
H A DPetscBinaryWrite.m10 % PetscBinaryWrite(inarg,args to write,['indices','int32' or 'int64'],['precision','float64' or '…
30 precision = 'float64'; variable
38 if ischar(varargin{l}) && strcmpi(varargin{l},'precision')
40 precision = varargin{l+1}; variable
77 write(fd,s,precision);
96 write(fd,A,precision);
H A DPetscReadBinaryTrajectory.m23 precision = 'float64'; variable
62 v = read(fd,m,precision);
66 t(stepnum) = read(fd,1,precision);
/petsc/src/snes/tutorials/
H A Dex74fcomd.h1 …entro, gorder parameter(neq = 3) double precision theta, pi, time, zero double precision damfac do…
4 double precision eigval,
8 double precision dx,
H A Dex74ftube.h1precision p1, p2, p3, p4, r1, r2, r3, r4 double precision e1, e2, e3, e4, v1, v2, v3, v4 double pr…
/petsc/config/PETSc/options/
H A DscalarTypes.py15 output += ' Precision: ' + self.precision + '\n'
17 if self.have__fp16 and not self.precision == '__fp16': support.append('__fp16')
18 if self.have__float128 and not self.precision == '__float128': support.append('__float128')
134 self.precision = self.framework.argDB['with-precision'].lower()
135 if self.precision == '__fp16': # supported by gcc trunk
145 elif self.precision == 'single':
148 elif self.precision == 'double':
151 elif self.precision == '__float128': # supported by gcc 4.6/gfortran and later
159 self.logPrint('Precision is '+str(self.precision))
170 return d[self.precision]
/petsc/lib/petsc/bin/
H A DPetscBinaryIO.py81 old_precision = self.precision
86 self.precision = kwargs.pop('precision')
112 self.precision = old_precision
186 def __init__(self, precision=None, indices=None, complexscalars=None): argument
187 if (precision is None) or (indices is None) or (complexscalars is None):
190 if precision is None:
192 precision = 'double'
194 precision = defaultprecision
208 self.precision = precision
209 if self.precision == '__float128' :
[all …]
H A Dpetsc_conf.py15 precision = None
51 precision = line.strip().split('=')[1].strip('\n').strip()
73 return precision, indices, complexscalars
/petsc/src/ksp/ksp/impls/hpddm/
H A Dhpddm.cxx39 …red", "KSPHPDDM", PetscPrecisionTypes, (PetscEnum)data->precision, (PetscEnum *)&data->precision, … in KSPSetFromOptions_HPDDM()
40precision != PETSC_PRECISION___FLOAT128 || PetscDefined(HAVE_REAL___FLOAT128), PetscObjectComm((Pe… in KSPSetFromOptions_HPDDM()
41precision - PETSC_SCALAR_PRECISION) <= 1, PetscObjectComm((PetscObject)ksp), PETSC_ERR_SUP, "Unsup… in KSPSetFromOptions_HPDDM()
42precision != PETSC_PRECISION_INVALID && data->precision != PETSC_PRECISION_BFLOAT16, PetscObjectCo… in KSPSetFromOptions_HPDDM()
84 …PetscCheck(data->precision == PETSC_SCALAR_PRECISION, PetscObjectComm((PetscObject)ksp), PETSC_ERR… in KSPSetFromOptions_HPDDM()
116 …PetscCall(PetscViewerASCIIPrintf(viewer, "precision: %s\n", PetscPrecisionTypes[data->precision])); in KSPView_HPDDM()
190 data->precision = PETSC_SCALAR_PRECISION; in KSPReset_HPDDM_Private()
266 …if (data->precision > PETSC_SCALAR_PRECISION) { /* Krylov basis stored in higher precision than Pe… in KSPSolve_HPDDM_Private()
286 …PetscCheck(data->precision != PETSC_PRECISION___FLOAT128, PetscObjectComm((PetscObject)ksp), PETSC… in KSPSolve_HPDDM_Private()
288 …} else if (data->precision < PETSC_SCALAR_PRECISION) { /* Krylov basis stored in lower precision t… in KSPSolve_HPDDM_Private()
[all …]
/petsc/src/dm/impls/da/
H A Dgrvtk.c33 const char precision[] = "Float32"; in DMDAVTKWriteAll_VTS() local
35 const char precision[] = "Float64"; in DMDAVTKWriteAll_VTS() local
37 const char precision[] = "UnknownPrecision"; in DMDAVTKWriteAll_VTS() local
102 …rOfComponents=\"3\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, boffset)); in DMDAVTKWriteAll_VTS()
131 …ponents=\"1\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, vecname, fieldn… in DMDAVTKWriteAll_VTS()
135 …scInt_FMT "\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, vecname, bs, bo… in DMDAVTKWriteAll_VTS()
259 const char precision[] = "Float32"; in DMDAVTKWriteAll_VTR() local
261 const char precision[] = "Float64"; in DMDAVTKWriteAll_VTR() local
263 const char precision[] = "UnknownPrecision"; in DMDAVTKWriteAll_VTR() local
316 …" Name=\"Xcoord\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, boffset)); in DMDAVTKWriteAll_VTR()
[all …]
/petsc/src/tao/leastsquares/tutorials/
H A DtomographyGenerateData.m21 PetscBinaryWrite('tomographyData_A_b_xGT', L, S(:), WGT(:), 'precision', 'float64');
27 % PetscBinaryWrite('tomographySparseMatrixA', L, 'precision', 'float64');
28 % PetscBinaryWrite('tomographyVecXGT', WGT(:), 'precision', 'float64');
29 % PetscBinaryWrite('tomographyVecB', S(:), 'precision', 'float64');
77 …PetscBinaryWrite('cs1SparseMatrixA', A, 'precision', 'float64'); % do NOT need to convert A to spa…
/petsc/src/vec/vec/impls/seq/
H A Dbvec3.c44 switch (((PetscObject)V)->precision) { in VecCreate_Seq()
64 …Object)V), PETSC_ERR_SUP, "No support for mixed precision %d", (int)(((PetscObject)V)->precision)); in VecCreate_Seq()
/petsc/config/BuildSystem/config/packages/
H A Dpragmatic.py46 if self.scalartypes.precision == 'single':
48 elif self.scalartypes.precision == '__float128':
/petsc/src/dm/impls/plex/
H A Dplexvtu.c12 static const char precision[] = "Float32"; variable
17 static const char precision[] = "Float64"; variable
21 static const char precision[] = "UnknownPrecision"; variable
248 …rOfComponents=\"3\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, boffset)); in DMPlexVTKWriteAll_VTU()
320 …ponents=\"3\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, vecname, fieldn… in DMPlexVTKWriteAll_VTU()
322 …ponents=\"3\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, vecname, fieldn… in DMPlexVTKWriteAll_VTU()
325 …ponents=\"3\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, vecname, fieldn… in DMPlexVTKWriteAll_VTU()
342 …ponents=\"1\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, finalname, boff… in DMPlexVTKWriteAll_VTU()
344 …ponents=\"1\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, finalname, boff… in DMPlexVTKWriteAll_VTU()
347 …ponents=\"1\" format=\"appended\" offset=\"%" PetscInt64_FMT "\" />\n", precision, finalname, boff… in DMPlexVTKWriteAll_VTU()
[all …]
/petsc/src/sys/classes/viewer/tutorials/output/
H A Dex2_2a.out6 Enforce single precision storage: TRUE
H A Dex2_2b.out6 Enforce single precision storage: FALSE
H A Dex2_2b_alt.out7 Enforce single precision storage: FALSE
/petsc/src/ts/tutorials/autodiff/output/
H A Dadr_ex1_2.out4 Testing hand-coded Jacobian, if (for double precision runs) ||J - Jfd||_F/||J||_F is
/petsc/src/mat/impls/aij/mpi/mumps/
H A Dmumps.c120 PetscPrecision precision; // precision used by MUMPS member
199 …c inline PetscErrorCode MatMumpsAllocateInternalID(XMUMPS_STRUC_C *outer, PetscPrecision precision) in MatMumpsAllocateInternalID() argument
202 outer->precision = precision; in MatMumpsAllocateInternalID()
205 if (precision == PETSC_PRECISION_SINGLE) AllocateInternalID(CMUMPS_STRUC_C, outer); in MatMumpsAllocateInternalID()
208 if (precision == PETSC_PRECISION_SINGLE) AllocateInternalID(SMUMPS_STRUC_C, outer); in MatMumpsAllocateInternalID()
235 const PetscPrecision mumps_precision = outer->precision; in MatMumpsFreeInternalID()
275 …(PetscBool convert, PetscCount n, const PetscScalar *pa, PetscPrecision precision, PetscCount *m, … in MatMumpsMakeMumpsScalarArray() argument
279 const PetscPrecision mumps_precision = precision; in MatMumpsMakeMumpsScalarArray()
280precision == PETSC_PRECISION_SINGLE || precision == PETSC_PRECISION_DOUBLE, PETSC_COMM_SELF, PETSC… in MatMumpsMakeMumpsScalarArray()
420 return id->precision == PETSC_PRECISION_DOUBLE ? MPI_DOUBLE : MPI_FLOAT; in MPIU_MUMPSREAL()
[all …]
/petsc/src/dm/impls/stag/tests/output/
H A Dex40_3d_no_coupling.out4 Testing hand-coded Jacobian, if (for double precision runs) ||J - Jfd||_F/||J||_F is
H A Dex40_2d_no_coupling_nsize-1_stag_dof_0-2_stag_dof_1-2_stag_dof_2-2.out4 Testing hand-coded Jacobian, if (for double precision runs) ||J - Jfd||_F/||J||_F is
H A Dex40_2d_no_coupling_nsize-4_stag_dof_0-2_stag_dof_1-1_stag_dof_2-1.out4 Testing hand-coded Jacobian, if (for double precision runs) ||J - Jfd||_F/||J||_F is
H A Dex40_2d_no_coupling_nsize-1_stag_dof_0-2_stag_dof_1-1_stag_dof_2-1.out4 Testing hand-coded Jacobian, if (for double precision runs) ||J - Jfd||_F/||J||_F is
H A Dex40_2d_no_coupling_nsize-1_stag_dof_0-2_stag_dof_1-2_stag_dof_2-1.out4 Testing hand-coded Jacobian, if (for double precision runs) ||J - Jfd||_F/||J||_F is

12345