Skip to content

Phase separation in block copolymers #27827

Discussion options

You must be logged in to vote

Hello

error: no match for 'operator+=' (operand types are 'libMesh::Real' {aka 'double'} and 'libMesh::boostcopy::enable_if_c<true, libMesh::TypeVector<double> >::type' {aka 'libMesh::TypeVector<double>'})

means you are summing a vector and a double. You have to use a loop to do that or maybe you do not want this?

  residual += _mob[_qp] * _alpha[_qp] * _kappa[_qp] * (_c[_qp] - _bar_c) * _grad_test[_i][_qp]; //Second term

residual is a real.
The other term is a real times a vector (gradient of the i-th test function at quadrature point qp)
maybe you mean to use _test instead?

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@GiudGiud
Comment options

@rnpratoori
Comment options

@GiudGiud
Comment options

@rnpratoori
Comment options

@GiudGiud
Comment options

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