CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: marupio
Forum: OpenFOAM Programming & Development November 8, 2011, 16:35
Replies: 3
Views: 2,037
Posted By marupio
Right... forgot about the absolute value. I'd...

Right... forgot about the absolute value. I'd suggest using OpenFOAM's built-in mag() function instead of abs()... just because I think it is more "type-safe"...
Forum: OpenFOAM Programming & Development November 8, 2011, 11:27
Replies: 3
Views: 2,037
Posted By marupio
Info is probably formatting away the extra...

Info is probably formatting away the extra decimals. You are comparing double precision float numbers and you want an exact match? Try instead to take a difference:


// instead of:
if...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 07:47.