I have run the following script:
from dolfin import *
import shelve
mesh = UnitSquareMesh(3, 3)
V = FunctionSpace(mesh, 'CG', 1)
f = Expression('1 + x[0]*x[1]')
f_proj = project(f, V)
curr_shelf = shelve.open('test_shelf_f')
curr_shelf['dofs of f'] = f_proj.vector().array()
curr_shelf.close()
on Ubuntu, where the shelf gets saved under the filename test_shelf_f (without any extension), and on Mac OS X, where the shelf gets saved under the filename test_shelf_f.db.
Since I developed some code on an Ubuntu machine which now needs to run on a Mac OS X machine, I would like to know how to tell the Mac OS X machine to store the shelf as test_shelf_f.
Any advice will be appreciated.