Skip to content

Commit

Permalink
bugfixes for none symmetric assembly.
Browse files Browse the repository at this point in the history
  • Loading branch information
MFraters committed Jan 14, 2018
1 parent 5e68a63 commit 9b68a88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions source/simulator/assemblers/newton_stokes.cc
Expand Up @@ -152,8 +152,8 @@ namespace aspect
if (scratch.dof_component_indices[i] ==
scratch.dof_component_indices[j])
{
data.local_matrix(i, j) += ((2.0 * eta * alpha * (scratch.grads_phi_u[i] * scratch.grads_phi_u[j]))
+ derivative_scaling_factor * alpha * (scratch.grads_phi_u[i] * (viscosity_derivative_wrt_strain_rate * scratch.grads_phi_u[j]) * strain_rate)
data.local_matrix(i, j) += ((2.0 * eta * (scratch.grads_phi_u[i] * scratch.grads_phi_u[j]))
+ derivative_scaling_factor * alpha * 2.0 * (scratch.grads_phi_u[i] * (viscosity_derivative_wrt_strain_rate * scratch.grads_phi_u[j]) * strain_rate)
+ one_over_eta * this->get_pressure_scaling()
* this->get_pressure_scaling()
* (scratch.phi_p[i] * scratch
Expand Down Expand Up @@ -335,7 +335,7 @@ namespace aspect
for (unsigned int i=0; i<stokes_dofs_per_cell; ++i)
for (unsigned int j=0; j<stokes_dofs_per_cell; ++j)
{
data.local_matrix(i,j) += ( derivative_scaling_factor * alpha * (scratch.grads_phi_u[i] * (viscosity_derivative_wrt_strain_rate * scratch.grads_phi_u[j]) * strain_rate)
data.local_matrix(i,j) += ( derivative_scaling_factor * alpha * 2.0 * (scratch.grads_phi_u[i] * (viscosity_derivative_wrt_strain_rate * scratch.grads_phi_u[j]) * strain_rate)
+ derivative_scaling_factor * this->get_pressure_scaling() * scratch.grads_phi_u[i] * 2.0 * viscosity_derivative_wrt_pressure * scratch.phi_p[j] * strain_rate )
* JxW;

Expand Down
4 changes: 2 additions & 2 deletions source/simulator/parameters.cc
Expand Up @@ -1057,8 +1057,8 @@ namespace aspect
use_Newton_stabilisation_A_block = prm.get("Use Newton stabilization A block");
use_Newton_failsafe = prm.get_bool("Use Newton failsafe");

AssertThrow(!DEAL_II_VERSION_GTE(9,0,0) && !use_Newton_failsafe, ExcMessage("The failsafe option can't be used with a deal.ii "
" les then 9.0.0."));
// AssertThrow(!DEAL_II_VERSION_GTE(9,0,0) && !use_Newton_failsafe, ExcMessage("The failsafe option can't be used with a deal.ii "
// " les then 9.0.0."));
}
prm.leave_subsection ();
prm.enter_subsection ("AMG parameters");
Expand Down

0 comments on commit 9b68a88

Please sign in to comment.