Skip to content
Snippets Groups Projects
Commit 370e969b authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Changed optimization for one function

OptimalAlignment::weightedAlignment crashed with intel c++ -O3.
I was not able to find why (gdb and valgrind did not help).
With this workaround, that function only is optimized at -O2 anyway.
parent 4672057d
No related branches found
No related tags found
No related merge requests found
...@@ -110,6 +110,10 @@ double OptimalAlignment::calculate(bool squared, std::vector<Vector> & derivativ ...@@ -110,6 +110,10 @@ double OptimalAlignment::calculate(bool squared, std::vector<Vector> & derivativ
return err; return err;
} }
#ifdef __INTEL_COMPILER
#pragma intel optimization_level 2
#endif
/// this does the weighed alignment if the vector of alignment is different from displacement /// this does the weighed alignment if the vector of alignment is different from displacement
double OptimalAlignment::weightedAlignment( bool rmsd){ double OptimalAlignment::weightedAlignment( bool rmsd){
double tmp0,tmp1,walign,wdisplace,const1,ret; double tmp0,tmp1,walign,wdisplace,const1,ret;
......
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