From 2e6f99627b10e9a3c67f077668c2477e950ea269 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 8 Aug 2008 22:40:40 +0200 Subject: [PATCH] replace 'prinf' with 'print' in blockMeshDict.m4 files - how did the old versions actually even work? --- .../mixerVessel2D/constant/polyMesh/blockMeshDict.m4 | 3 +-- .../sloshingTank2D/constant/polyMesh/blockMeshDict.m4 | 2 +- .../sloshingTank2D3DoF/constant/polyMesh/blockMeshDict.m4 | 2 +- .../sloshingTank3D/constant/polyMesh/blockMeshDict.m4 | 2 +- .../sloshingTank3D3DoF/constant/polyMesh/blockMeshDict.m4 | 2 +- .../sloshingTank3D6DoF/constant/polyMesh/blockMeshDict.m4 | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tutorials/MRFSimpleFoam/mixerVessel2D/constant/polyMesh/blockMeshDict.m4 b/tutorials/MRFSimpleFoam/mixerVessel2D/constant/polyMesh/blockMeshDict.m4 index d1c2ffdab9..899b4ccbec 100644 --- a/tutorials/MRFSimpleFoam/mixerVessel2D/constant/polyMesh/blockMeshDict.m4 +++ b/tutorials/MRFSimpleFoam/mixerVessel2D/constant/polyMesh/blockMeshDict.m4 @@ -16,8 +16,7 @@ FoamFile // General macros to create 2D/extruded-2D meshes changecom(//)changequote([,]) -define(calc, [esyscmd(perl -e 'printf ($1)')]) -//define(calc, [esyscmd(echo $1 | bc | tr -d \\n)]) +define(calc, [esyscmd(perl -e 'print ($1)')]) define(VCOUNT, 0) define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))]) define(pi, 3.14159265) diff --git a/tutorials/interDyMFoam/sloshingTank2D/constant/polyMesh/blockMeshDict.m4 b/tutorials/interDyMFoam/sloshingTank2D/constant/polyMesh/blockMeshDict.m4 index ced5dc533e..ad753abc56 100644 --- a/tutorials/interDyMFoam/sloshingTank2D/constant/polyMesh/blockMeshDict.m4 +++ b/tutorials/interDyMFoam/sloshingTank2D/constant/polyMesh/blockMeshDict.m4 @@ -16,7 +16,7 @@ FoamFile // General m4 macros changecom(//)changequote([,]) -define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; printf ($1)')]) +define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; print ($1)')]) define(VCOUNT, 0) define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))]) diff --git a/tutorials/interDyMFoam/sloshingTank2D3DoF/constant/polyMesh/blockMeshDict.m4 b/tutorials/interDyMFoam/sloshingTank2D3DoF/constant/polyMesh/blockMeshDict.m4 index ced5dc533e..ad753abc56 100644 --- a/tutorials/interDyMFoam/sloshingTank2D3DoF/constant/polyMesh/blockMeshDict.m4 +++ b/tutorials/interDyMFoam/sloshingTank2D3DoF/constant/polyMesh/blockMeshDict.m4 @@ -16,7 +16,7 @@ FoamFile // General m4 macros changecom(//)changequote([,]) -define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; printf ($1)')]) +define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; print ($1)')]) define(VCOUNT, 0) define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))]) diff --git a/tutorials/interDyMFoam/sloshingTank3D/constant/polyMesh/blockMeshDict.m4 b/tutorials/interDyMFoam/sloshingTank3D/constant/polyMesh/blockMeshDict.m4 index 5e355fd702..cc851f6503 100644 --- a/tutorials/interDyMFoam/sloshingTank3D/constant/polyMesh/blockMeshDict.m4 +++ b/tutorials/interDyMFoam/sloshingTank3D/constant/polyMesh/blockMeshDict.m4 @@ -16,7 +16,7 @@ FoamFile // General m4 macros changecom(//)changequote([,]) -define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; printf ($1)')]) +define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; print ($1)')]) define(VCOUNT, 0) define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))]) diff --git a/tutorials/interDyMFoam/sloshingTank3D3DoF/constant/polyMesh/blockMeshDict.m4 b/tutorials/interDyMFoam/sloshingTank3D3DoF/constant/polyMesh/blockMeshDict.m4 index 5e355fd702..cc851f6503 100644 --- a/tutorials/interDyMFoam/sloshingTank3D3DoF/constant/polyMesh/blockMeshDict.m4 +++ b/tutorials/interDyMFoam/sloshingTank3D3DoF/constant/polyMesh/blockMeshDict.m4 @@ -16,7 +16,7 @@ FoamFile // General m4 macros changecom(//)changequote([,]) -define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; printf ($1)')]) +define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; print ($1)')]) define(VCOUNT, 0) define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))]) diff --git a/tutorials/interDyMFoam/sloshingTank3D6DoF/constant/polyMesh/blockMeshDict.m4 b/tutorials/interDyMFoam/sloshingTank3D6DoF/constant/polyMesh/blockMeshDict.m4 index 5e355fd702..cc851f6503 100644 --- a/tutorials/interDyMFoam/sloshingTank3D6DoF/constant/polyMesh/blockMeshDict.m4 +++ b/tutorials/interDyMFoam/sloshingTank3D6DoF/constant/polyMesh/blockMeshDict.m4 @@ -16,7 +16,7 @@ FoamFile // General m4 macros changecom(//)changequote([,]) -define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; printf ($1)')]) +define(calc, [esyscmd(perl -e 'use Math::Trig; use POSIX; print ($1)')]) define(VCOUNT, 0) define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])