Lines Matching refs:adios

17   PetscViewer_ADIOS *adios = (PetscViewer_ADIOS *)viewer->data;  in PetscViewerFileClose_ADIOS()  local
20 switch (adios->btype) { in PetscViewerFileClose_ADIOS()
22 PetscCallExternal(adios_read_close, adios->adios_fp); in PetscViewerFileClose_ADIOS()
25 PetscCallExternal(adios_close, adios->adios_handle); in PetscViewerFileClose_ADIOS()
30 PetscCall(PetscFree(adios->filename)); in PetscViewerFileClose_ADIOS()
36 PetscViewer_ADIOS *adios = (PetscViewer_ADIOS *)viewer->data; in PetscViewerDestroy_ADIOS() local
40 PetscCall(PetscFree(adios)); in PetscViewerDestroy_ADIOS()
49 PetscViewer_ADIOS *adios = (PetscViewer_ADIOS *)viewer->data; in PetscViewerFileSetMode_ADIOS() local
52 adios->btype = type; in PetscViewerFileSetMode_ADIOS()
58 PetscViewer_ADIOS *adios = (PetscViewer_ADIOS *)viewer->data; in PetscViewerFileSetName_ADIOS() local
61 if (adios->filename) PetscCall(PetscFree(adios->filename)); in PetscViewerFileSetName_ADIOS()
62 PetscCall(PetscStrallocpy(name, &adios->filename)); in PetscViewerFileSetName_ADIOS()
64 switch (adios->btype) { in PetscViewerFileSetName_ADIOS()
66adios->adios_fp = adios_read_open_file(adios->filename, ADIOS_READ_METHOD_BP, PetscObjectComm((Pet… in PetscViewerFileSetName_ADIOS()
69 …adios_open(&adios->adios_handle, "PETSc", adios->filename, "w", PetscObjectComm((PetscObject)viewe… in PetscViewerFileSetName_ADIOS()
74 …omm((PetscObject)viewer), PETSC_ERR_SUP, "Unsupported file mode %s", PetscFileModes[adios->btype]); in PetscViewerFileSetName_ADIOS()
101 PetscViewer_ADIOS *adios; in PetscViewerCreate_ADIOS() local
104 PetscCall(PetscNew(&adios)); in PetscViewerCreate_ADIOS()
106 v->data = (void *)adios; in PetscViewerCreate_ADIOS()
110 adios->btype = FILE_MODE_UNDEFINED; in PetscViewerCreate_ADIOS()
111 adios->filename = NULL; in PetscViewerCreate_ADIOS()
112 adios->timestep = -1; in PetscViewerCreate_ADIOS()