Mercurial > repos > public > sbplib
view +util/unique_filename.m @ 982:a0b3161e44f3 feature/getBoundaryOp
Add the following methods in LaplaceCurvilinear: getBoundaryOperator, getBoundaryQuadrature, getBoundaryBorrowing. Remove get_boundary_ops. Make interface and boundary_condition methods use the new methods.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 08 Jan 2019 11:51:24 +0100 |
parents | 48b6fb693025 |
children |
line wrap: on
line source
% Creates a unique filename on the form base_name.x.suffix where x is some number. function filename = unique_filename(base_name, suffix) filename = strcat(base_name,suffix); i = 1; while exist(filename) filename = strcat(base_name,'.',num2str(i),suffix); i = i+1; end end