aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2003-05-09 11:26:29 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2003-05-09 11:26:29 +0000
commit786a165da21b7e871f4ee7196088d1e2f34d333a (patch)
tree09404b0f04b935d6ffabcd45dfbf32a7f053ab3e /src
parent948e53bf202d3ced82ce5198bc9c5e32ebf20ef5 (diff)
When unpacking the interprocessor synchronization results from our
(CCTK_REAL) buffer back to user-typed variables, the code used to do static_cast<enum blah>(a CCTK_REAL value). It seems the Hitachi C++ compiler doesn't like this, so change the code to static_cast<enum blah>( static_cast<int>(a CCTK_REAL value) ) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1053 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r--src/driver/Newton.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/driver/Newton.cc b/src/driver/Newton.cc
index 269036a..e39717a 100644
--- a/src/driver/Newton.cc
+++ b/src/driver/Newton.cc
@@ -630,7 +630,9 @@ bool any_proc_needs_more_iterations = false;
isb.expansion_status_buffer[proc]
= static_cast<enum expansion_status>(
- receive_buffer(proc, buffer_var__expansion_status)
+ static_cast<int>(
+ receive_buffer(proc, buffer_var__expansion_status)
+ )
);
isb.rms_norm_buffer[proc]