29Viewer::Viewer(MPI_Comm com,
const std::string &title,
unsigned int target_size,
30 double Lx,
double Ly) {
36 ierr = PetscViewerDrawOpen(com, NULL, title.c_str(),
37 PETSC_DECIDE, PETSC_DECIDE, X, Y, &
m_value);
38 PISM_CHK(ierr,
"PetscViewerDrawOpen");
43 ierr = PetscViewerDrawGetDraw(
m_value, 0, &draw);
44 PISM_CHK(ierr,
"PetscViewerDrawGetDraw");
46 ierr = PetscDrawSetTitle(draw, title.c_str());