Skip to content

Add support for Kokkos::atomic_add() with Sacado Fad types

James Willenbring requested to merge etphipp:sacado_atomic_add into develop

Created by: etphipp

Requested by @CamelliaDPG. This provides overloads of Kokkos::atomic_add() for all Fad types. It also implements operator&() for ViewFad, allowing you to do things like

Kokkos::atomic_add(&v(i,j,k),x);

Note that because of this overload, ViewFad::operator&() does not return ViewFad*, which required a small change in Phalanx. Since you could only safely take the address of a ViewFad in limited situations, I am hoping this kind of change is not needed in many places.

Merge request reports

Loading