/*ffmatlib.idp Export Macros (Plot Solutions for Matlab and Octave) * * Author: Chloros2 * Created: 2018-12-21 * * This file is part of the ffmatlib which is hosted at * https://github.com/samplemaker/freefem_matlab_octave_plot * * Copyright (C) 2018 Chloros2 * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see * . * */ //Save finite element connectivity (j-th degree of freedom for i-th element) macro ffSaveVh(Th, Vh, filename){ { ofstream file(filename); file.precision(10); for (int i=0; i