Mercurial > octave-nkf
comparison scripts/ode/private/ode_struct_value_check.m @ 20586:b7ac1e94266e
maint: Further clean up of functions in ode/private dir.
* AbsRel_Norm.m, fuzzy_compare.m, integrate_adaptive.m, integrate_const.m,
integrate_n_steps.m, ode_struct_value_check.m, odepkg_event_handle.m,
odepkg_structure_check.m, runge_kutta_45_dorpri.m:
Place latest copyright first in file.
Use two spaces before beginning single-line comment.
Use parentheses around variable to be tested in switch stmt.
Use space between function name and opening parenthesis.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 05 Oct 2015 12:03:16 -0700 |
parents | eb9e2d187ed2 |
children | e5f36a7854a5 |
comparison
equal
deleted
inserted
replaced
20585:45151de7423f | 20586:b7ac1e94266e |
---|---|
1 ## Copyright (C) 2013, Roberto Porcu' <roberto.porcu@polimi.it> | |
1 ## Copyright (C) 2006-2012, Thomas Treichl <treichl@users.sourceforge.net> | 2 ## Copyright (C) 2006-2012, Thomas Treichl <treichl@users.sourceforge.net> |
2 ## Copyright (C) 2013, Roberto Porcu' <roberto.porcu@polimi.it> | |
3 ## | 3 ## |
4 ## This file is part of Octave. | 4 ## This file is part of Octave. |
5 ## | 5 ## |
6 ## Octave is free software; you can redistribute it and/or modify it | 6 ## Octave is free software; you can redistribute it and/or modify it |
7 ## under the terms of the GNU General Public License as published by | 7 ## under the terms of the GNU General Public License as published by |
175 endif | 175 endif |
176 endif | 176 endif |
177 endif | 177 endif |
178 | 178 |
179 case "JConstant" | 179 case "JConstant" |
180 if (! isempty(arg.(fields{i}))) | 180 if (! isempty (arg.(fields{i}))) |
181 if (! strcmp (arg.(fields{i}), "on") | 181 if (! strcmp (arg.(fields{i}), "on") |
182 && ! strcmp (arg.(fields{i}), "off")) | 182 && ! strcmp (arg.(fields{i}), "off")) |
183 error ("OdePkg:InvalidArgument", | 183 error ("OdePkg:InvalidArgument", |
184 "value assigned to field %s is not a valid one", fields{i}); | 184 "value assigned to field %s is not a valid one", fields{i}); |
185 endif | 185 endif |