How do I convert scalar to word
I want to convert a number to a string in openfoam.
Code:
scalar count(11); word::stripInvalid() called for word For debug level (= 2) > 1 this is considered fatal Aborted (core dumped) What seems to be the problem here? Thankyou |
Never mind. Converting scalar to word should be done like this
Code:
word fieldName(name(i)); |
name function
you can use name function. like this:
Code:
scalar a(0); $FOAM_SRC/OpenFOAM/primitives/ints |
All times are GMT -4. The time now is 11:16. |