[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Views passed into functions do not update properly
From: |
Jean C. Marshall |
Subject: |
Views passed into functions do not update properly |
Date: |
Wed, 18 Apr 2001 10:25:20 -0600 |
Gang:
We have run into a problem in which passing views into a function causes
the updaters to not be called. Here is an example.
John and Jean
//======================================================================
// Function -- QRelations<Traits>::calcEdgeSoundSpeed
//======================================================================
template <class Traits>
void QRelations<Traits>::calcEdgeSoundSpeed ( const
ScalarField& EdgeSoundSpeed,
const
ScalarField& VertSoundSpeed )
{
ENTER("QRelations::calcEdgeSoundSpeed");
int d = getEdgeDirection(EdgeSoundSpeed);
// Without this explicit update call, the updaters do
not get called for VertSoundSpeed
VertSoundSpeed.update();
EdgeSoundSpeed(CoarseEdges[d]) =
min(
VertSoundSpeed(CoarseEdges[d]),VertSoundSpeed(EdgeNgbr[d]) );
} // end function calcEdgeSoundSpeed
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Views passed into functions do not update properly,
Jean C. Marshall <=