22#include < cstdio>
33#include < string>
44#include < cmath>
5-
5+ # include < immintrin.h > // Include SIMD intrinsics header
66int enzyme_dup;
77int enzyme_out;
88int enzyme_const;
@@ -79,7 +79,7 @@ float old_stretch_energy(Stretch* stretch_begin, Stretch* stretch_end, float* po
7979 bool calcForce = true ;
8080#define STRETCH_CALC_FORCE 1
8181 for ( auto stretch = stretch_begin; stretch<stretch_end; stretch++ ) {
82- #include " _Stretch_termCode.cc"
82+ #include " _Stretch_termCode .cc"
8383 }
8484#undef DECLARE_FLOAT
8585#undef STRETCH_SET_PARAMETER
@@ -94,11 +94,10 @@ void zeroVec(float* deriv, size_t num) {
9494 }
9595}
9696int main ( int argc, const char * argv[] ) {
97- float pos[12 ] = {0.0 , 19.0 , 3.0 , 10.0 , 7.0 , 80.0 ,
98- 20.0 , 15.0 , 17.0 , 25.0 , 44.0 , 23.0 };
97+ float pos[12 ] = {0.0 , 19.0 ,3.0 , 10.0 , 7.0 , 80.0 ,
98+ 20.0 , 15.0 ,17.0 , 25.0 , 44.0 , 23.0 };
9999 float deriv[12 ];
100100 Stretch stretch[] = { {10.0 , 2.0 , 0 , 3 }, {20.0 , 3.0 , 6 , 9 } };
101-
102101 dump_vec (" pos" , pos, 12 );
103102 float energy = 0.0 ;
104103 std::string arg1 (argv[1 ]);
@@ -122,3 +121,4 @@ int main( int argc, const char* argv[] ) {
122121 dump_vec (" deriv" , deriv, 12 );
123122
124123}
124+
0 commit comments