Skip to content

Commit

Permalink
debug higher order
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeltzun committed Jul 7, 2023
1 parent 9a2f527 commit 8d179b4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<FiniteElements>
<FiniteElementSpace
name="FE1"
order="3"
order="1"
formulation="SEM"/>
</FiniteElements>
</NumericalMethods>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,23 @@ void AcousticElasticWaveEquationSEM::initializePostInitialConditionsPreSubGroups
auto acousNodesSet = acousticSolver()->getSolverNodesSet();
auto elasNodesSet = elasticSolver()->getSolverNodesSet();

if (false) // debug
{
std::cout << "acoustic nodes" << std::endl;
for (auto val : acousNodesSet) std::cout << val << ' ';
std::cout << std::endl;
std::cout << "elastic nodes" << std::endl;
for (auto val : elasNodesSet) std::cout << val << ' ';
std::cout << std::endl;
}

for (auto val : acousNodesSet)
{
if (elasNodesSet.contains(val)) m_interfaceNodesSet.insert(val);
}

// std::cout << "\t[AcousticElasticWaveEquationSEM::initializePostInitialConditionsPreSubGroups] size=" << m_solverTargetNodesSet.size() << std::endl;
std::cout << "\t[AcousticElasticWaveEquationSEM::initializePostInitialConditionsPreSubGroups] "
<< "m_interfaceNodesSet.size()=" << m_interfaceNodesSet.size() << std::endl;
GEOS_THROW_IF( m_interfaceNodesSet.size() == 0, "Failed to compute interface: check xml input (solver order)", std::runtime_error );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ void AcousticWaveEquationSEM::initializePostInitialConditionsPreSubGroups()
} );
} );
} );
// std::cout << "\t[AcousticWaveEquationSEM::initializePostInitialConditionsPreSubGroups] size=" << m_solverTargetNodesSet.size() << std::endl;
std::cout << "\t[AcousticWaveEquationSEM::initializePostInitialConditionsPreSubGroups] m_solverTargetNodesSet.size()=" << m_solverTargetNodesSet.size() << std::endl;

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ void ElasticWaveEquationSEM::initializePostInitialConditionsPreSubGroups()
} );
} );

// std::cout << "\t[ElasticWaveEquationSEM::initializePostInitialConditionsPreSubGroups] size=" << m_solverTargetNodesSet.size() << std::endl;
std::cout << "\t[ElasticWaveEquationSEM::initializePostInitialConditionsPreSubGroups] m_solverTargetNodesSet.size()=" << m_solverTargetNodesSet.size() << std::endl;
}


Expand Down

0 comments on commit 8d179b4

Please sign in to comment.