src/SVPH/CompatibleFaceSpecificThermalEnergyPolicy.cc
//------------------------------------------------------------------------------
// Define the weighting function deciding how to divvy up the work between
// nodes.
//------------------------------------------------------------------------------
// The old method.
// inline
// double standardWeighting(const double& ui,
//                          const double& uj,
//                          const double& mi,
//                          const double& mj,
//                          const double& duij) {
//   const double uji = uj - ui;
//   const double result = 0.5*(1.0 + uji/(abs(uji) + 1.0/(1.0 + abs(uji)))*sgn0(duij));
//   ENSURE(result >= 0.0 and result <= 1.0);
//   return result;
// }
Define the weighting function deciding how to divvy up the work between
nodes.

The old method.
Define the weighting function deciding how to divvy up the work between nodes . The old method .
inline
double standardWeighting(const double& ui,
                         const double& uj,
                         const double& ,
                         const double& ,
                         const double& duij) {
  const double uji = uj - ui;
  const double result = 0.5*(1.0 + uji*sgn0(duij)/(abs(uji) + 0.5));
  ENSURE(result >= 0.0 and result <= 1.0);
  return result;
}
inline double standardWeighting ( const double & ui , const double & uj , const double & , const double & , const double & duij ) { const double uji = uj - ui ; const double result = 0.5 * ( 1.0 + uji * sgn0 ( duij ) / ( abs ( uji ) + 0.5 ) ) ; ENSURE ( result >= 0.0 and result <= 1.0 ) ; return result ; }
Define the weighting function deciding how to divvy up the work between
nodes.
Define the weighting function deciding how to divvy up the work between nodes .
/*mi*/ /*mj*/