|
[Sponsors] |
March 8, 2014, 13:38 |
Extraneous pow() computations
|
#1 |
New Member
Gaetan Kenway
Join Date: Aug 2013
Posts: 2
Rep Power: 0 |
There are two extraneous pow() computations in solver_mean_direct.cpp in the venkatakrishan limiter at lines 4395 and 4414.
/*-- Get limiter parameters from the configuration file ---*/ dave = config->GetRefElemLength(); LimK = config->GetLimiterCoeff(); eps2 = pow((LimK*dave), 3.0); You take about a 20% speed hit from this. This computation should be outside the edge loop. Gaetan |
|
March 10, 2014, 17:09 |
|
#2 | |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
Quote:
Best, Francisco |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
Error when doing the computations | libra | OpenFOAM | 4 | February 23, 2012 22:30 |
Computations with eighty million cells | Armin | OpenFOAM | 8 | January 7, 2011 15:15 |
Computations with eighty million cells | Armin | Main CFD Forum | 0 | December 28, 2010 07:47 |
Pos-processing computations | Renato | Main CFD Forum | 0 | September 30, 2005 11:35 |