error('DYNARE: argument of dynare must be a text string')
end
if~isvarname(fname)
error('DYNARE: argument of dynare must conform to Matlab''s convention for naming functions, i.e. start with a letter and not contain special characters. Please rename your MOD-file.')