View Issue Details

IDProjectCategoryView StatusLast Update
0002133OpenFOAMPatchpublic2016-06-29 21:57
Reporterkevnor Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0002133: Error in fvcD2dt2
DescriptionCodes using fvc::d2dt2 fail to compile in the release version of 4.0, due to fvcD2dt2.C using the deprecated approach for non-const dereferencing from a tmp. Suggested patch attached.
TagsNo tags attached.

Activities

kevnor

2016-06-29 20:30

reporter  

fvcD2dt2.C.diff (450 bytes)   
--- fvcD2dt2.C~	2016-06-24 23:33:52.000000000 +0200
+++ fvcD2dt2.C	2016-06-29 14:08:51.148462113 +0200
@@ -50,7 +50,7 @@
     (
         vf.mesh(),
         vf.mesh().ddtScheme("d2dt2(" + vf.name() + ')')
-    )().fvcD2dt2(vf);
+    ).ref().fvcD2dt2(vf);
 }
 
 
@@ -66,7 +66,7 @@
     (
         vf.mesh(),
         vf.mesh().ddtScheme("d2dt2(" + rho.name() + ',' + vf.name() + ')')
-    )().fvcD2dt2(rho, vf);
+    ).ref().fvcD2dt2(rho, vf);
 }
 
 
fvcD2dt2.C.diff (450 bytes)   

henry

2016-06-29 21:57

manager   ~0006475

Thanks for reporting.

Resolved in OpenFOAM-dev by commit 9fa1756565a6a1c407f575e64ab759e096886336
Resolved in OpenFOAM-4.x by commit 90f400ead5e806c062e14cec973fdbb2d78ebe3e

Issue History

Date Modified Username Field Change
2016-06-29 20:30 kevnor New Issue
2016-06-29 20:30 kevnor File Added: fvcD2dt2.C.diff
2016-06-29 21:57 henry Note Added: 0006475
2016-06-29 21:57 henry Status new => resolved
2016-06-29 21:57 henry Fixed in Version => 4.x
2016-06-29 21:57 henry Resolution open => fixed
2016-06-29 21:57 henry Assigned To => henry