Skip to content
Snippets Groups Projects
Verified Commit 59b5d257 authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(style) Test format 10 + (fix) compiler warning

parent 8f635592
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
Pipeline #48906 passed with warnings
......@@ -1054,7 +1054,7 @@ void CoupledAdjoint::gradientwrtMesh() {
// dJ/dx_j)*grad_xPhi dM/dx = dM/dgradPhi * dgradPhi/dx = dM/dgradPhi *
// gradPhi * dv/dx drho/dx = drho/dgradPhi * dgradPhi/dx = drho/dgradPhi
// * gradPhi * dv/dx
for (int inodOnElm = 0; inodOnElm < e->nodes.size(); inodOnElm++)
for (size_t inodOnElm = 0; inodOnElm < e->nodes.size(); inodOnElm++)
for (int idim = 0; idim < nDim; ++idim) {
Eigen::VectorXd gradV = (-e->getJinv(0)) *
e->getGradJ(0)[inodOnElm * nDim + idim] *
......@@ -1094,9 +1094,9 @@ void CoupledAdjoint::gradientwrtMesh() {
*/
Eigen::VectorXd CoupledAdjoint::runViscous() {
int exitCode = vsol->run();
// if (exitCode != 0)
// std::cout << "vsol terminated with exit code " << exitCode <<
// std::endl;
if (exitCode != 0 && vsol->verbose > 0)
std::cout << "vsol terminated with exit code " << exitCode <<
std::endl;
// Extract deltaStar
std::vector<Eigen::VectorXd> dStar_p;
......
......@@ -45,7 +45,7 @@ def main():
encs = {}
for f in all_files(os.getcwd(), patterns='*.cpp;*.c;*.h;*.hpp'):
# print(f)
cmd = ['clang-format-11', "-style=file", "-i", f]
cmd = ['clang-format-10', "-style=file", "-i", f]
retcode = subprocess.call(cmd)
if retcode != 0:
print(f'ERROR: retcode = {retcode}')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment