petsc-3.8.4 2018-03-24
Report Typos and Errors

PetscViewerHDF5SetSPOutput

Data is written to disk in single precision even if PETSc is compiled with double precision PetscReal.

Synopsis

#include "petscsys.h"   
#include "petscviewerhdf5.h"   
PetscErrorCode PetscViewerHDF5SetSPOutput(PetscViewer viewer,PetscBool flg)
Logically Collective on PetscViewer

Input Parameters

viewer - the PetscViewer; if it is not hdf5 then this command is ignored
flg - if PETSC_TRUE the data will be written to disk with single precision

Options Database

-viewer_hdf5_sp_output -turns on (true) or off (false) output in single precision

Notes: Setting this option does not make any difference if PETSc is compiled with single precision in the first place. It does not affect reading datasets (HDF5 handle this internally).

See Also

PetscViewerFileSetMode(), PetscViewerCreate(), PetscViewerSetType(), PetscViewerBinaryOpen(),
PetscReal

Level:intermediate
Location:
src/sys/classes/viewer/impls/hdf5/hdf5v.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages