use while (runTime.loop() { .. } where possible in solvers

- change system/controlDict to use functions {..} instead of functions (..);
  * This is internally more efficient
- fixed formatting of system/controlDict functions entry

- pedantic change: use 'return 0' instead of 'return(0)' in the applications,
  since return is a C/C++ keyword, not a function.
This commit is contained in:
Mark Olesen
2009-02-18 08:57:10 +01:00
parent 8b5457a829
commit 4b60453cf1
125 changed files with 398 additions and 367 deletions

View File

@ -248,7 +248,7 @@ initstate(seed, arg_state, n)
if (n < BREAK_0) {
(void)fprintf(stderr,
"random: not enough state (%d bytes); ignored.\n", n);
return(0);
return 0;
}
if (n < BREAK_1) {
rand_type = TYPE_0;

View File

@ -45,7 +45,7 @@ timePrecision 6;
runTimeModifiable yes;
functions
(
{
fieldAverage1
{
// Type of functionObject
@ -54,23 +54,24 @@ functions
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldAverage.so");
// Fields to be averaged - runTime modifiable
// Fields to be averaged - runTime modifiable
fields
(
U
{
mean on;
prime2Mean on;
base time;
mean on;
prime2Mean on;
base time;
}
p
{
mean on;
prime2Mean on;
base time;
mean on;
prime2Mean on;
base time;
}
);
}
);
}
// ************************************************************************* //