11/* !************************************************************************
22 * \file physicsmodel.hxx
3- *
3+ *
44 * @brief Base class for Physics Models
5- *
6- *
5+ *
6+ *
77 *
88 * Changelog:
9- *
9+ *
1010 * 2013-08 Ben Dudson <benjamin.dudson@york.ac.uk>
1111 * * Initial version
12- *
12+ *
1313 **************************************************************************
1414 * Copyright 2013 B.D.Dudson
1515 *
1616 * Contact: Ben Dudson, bd512@york.ac.uk
17- *
17+ *
1818 * This file is part of BOUT++.
1919 *
2020 * BOUT++ is free software: you can redistribute it and/or modify
@@ -167,9 +167,9 @@ public:
167167 *
168168 * Output
169169 * ------
170- *
170+ *
171171 * The time derivatives will be put in the ddt() variables
172- *
172+ *
173173 * Returns a flag: 0 indicates success, non-zero an error flag
174174 */
175175 int runRHS (BoutReal time, bool linear = false );
@@ -203,7 +203,7 @@ public:
203203 bool hasPrecon ();
204204
205205 /* !
206- * Run the preconditioner. The system state should be in the
206+ * Run the preconditioner. The system state should be in the
207207 * evolving variables, and the vector to be solved in the ddt() variables.
208208 * The result will be put in the ddt() variables.
209209 *
@@ -219,7 +219,7 @@ public:
219219
220220 /* !
221221 * Run the Jacobian-vector multiplication function
222- *
222+ *
223223 * Note: this is usually only called by the Solver
224224 */
225225 int runJacobian (BoutReal t);
@@ -241,10 +241,10 @@ protected:
241241 // The init and rhs functions are implemented by user code to specify problem
242242 /* !
243243 * @brief This function is called once by the solver at the start of a simulation.
244- *
244+ *
245245 * A valid PhysicsModel must implement this function
246- *
247- * Variables should be read from the inputs, and the variables to
246+ *
247+ * Variables should be read from the inputs, and the variables to
248248 * be evolved should be specified.
249249 */
250250 virtual int init (bool restarting) = 0;
@@ -258,7 +258,7 @@ protected:
258258 /* !
259259 * @brief This function is called by the time integration solver
260260 * at least once per time step
261- *
261+ *
262262 * Variables being evolved will be set by the solver
263263 * before the call, and this function must calculate
264264 * and set the time-derivatives.
@@ -278,10 +278,10 @@ protected:
278278 // / Add additional variables other than the evolving variables to the restart files
279279 virtual void restartVars (Options& options);
280280
281- /*
281+ /*
282282 If split operator is set to true, then
283283 convective() and diffusive() are called instead of rhs()
284-
284+
285285 For implicit-explicit schemes, convective() will typically
286286 be treated explicitly, whilst diffusive() will be treated implicitly.
287287 For unsplit methods, both convective and diffusive will be called
@@ -334,7 +334,7 @@ protected:
334334 *
335335 * @param[in] var The variable to evolve
336336 * @param[in] name The name to use for variable initialisation and output
337- *
337+ *
338338 * Note that the variable must not be destroyed (e.g. go out of scope)
339339 * after this call, since a pointer to \p var is stored in the solver.
340340 *
@@ -358,11 +358,11 @@ protected:
358358 * Specify a constrained variable \p var, which will be
359359 * adjusted to make \p F_var equal to zero.
360360 * If the solver does not support constraints then this will throw an exception
361- *
361+ *
362362 * @param[in] var The variable the solver should modify
363363 * @param[in] F_var The control variable, which the user will set
364364 * @param[in] name The name to use for initialisation and output
365- *
365+ *
366366 */
367367 bool bout_constrain (Field3D& var, Field3D& F_var, const char * name);
368368
@@ -491,8 +491,7 @@ private:
491491
492492// / Add fields to the solver.
493493// / This should accept up to ten arguments
494- #define SOLVE_FOR (...) \
495- { MACRO_FOR_EACH (SOLVE_FOR1 , __VA_ARGS__) }
494+ #define SOLVE_FOR (...) {MACRO_FOR_EACH (SOLVE_FOR1 , __VA_ARGS__)}
496495
497496// / Write this variable once to the grid file
498497#define SAVE_ONCE1 (var ) dump.addOnce(var, #var);
@@ -532,8 +531,7 @@ private:
532531 dump.addOnce (var6, #var6); \
533532 }
534533
535- #define SAVE_ONCE (...) \
536- { MACRO_FOR_EACH (SAVE_ONCE1 , __VA_ARGS__) }
534+ #define SAVE_ONCE (...) {MACRO_FOR_EACH (SAVE_ONCE1 , __VA_ARGS__)}
537535
538536// / Write this variable every timestep
539537#define SAVE_REPEAT1 (var ) dump.addRepeat(var, #var);
@@ -573,7 +571,6 @@ private:
573571 dump.addRepeat (var6, #var6); \
574572 }
575573
576- #define SAVE_REPEAT (...) \
577- { MACRO_FOR_EACH (SAVE_REPEAT1 , __VA_ARGS__) }
574+ #define SAVE_REPEAT (...) {MACRO_FOR_EACH (SAVE_REPEAT1 , __VA_ARGS__)}
578575
579576#endif // BOUT_PHYSICS_MODEL_H
0 commit comments