Skip to content

mixed usage of AD and non-AD materials and kernels #26830

Discussion options

You must be logged in to vote

you declare it as a Real

_density(_compute_rho_mu
? (_nodal_material ? &this->template declareGenericProperty<Real, is_ad>(
"PorousFlow_fluid_phase_density_nodal" + _phase)

and retrieve it as a vector

_ad_fluid_density_node(getADMaterialProperty<std::vector<Real>>("AD_PorousFlow_fluid_phase_density_nodal")),

that s the problem

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@Bearunner
Comment options

@GiudGiud
Comment options

@cpgr
Comment options

cpgr Feb 18, 2024
Collaborator

@GiudGiud
Comment options

@Bearunner
Comment options

Comment options

You must be logged in to vote
1 reply
@Bearunner
Comment options

Answer selected by Bearunner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants