fix bug for computation of reference_position

function now is static
8 jobs for Progressive_Embedding in 7 minutes and 35 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
failed #105916
Qt551 VS2013
CoMISo-VS2013-Qt-5.5.1-x64

00:01:18

passed #103771
IPOPT3129 VS2017
CoMISo-VS2017-Qt-5.10.1-x64

00:01:12

passed #103768
Linux
clang-c++11

00:03:36

passed #103767
Linux
gcc-c++11

00:06:16

passed #103769
Apple
macos-c++11

00:02:45

failed #104233
VS2013 Qt551
CoMISo-VS2013-Qt-5.5.1-x64

00:01:02

failed #103770
Qt551 VS2013
CoMISo-VS2013-Qt-5.5.1-x64

00:01:00

 
  Deploy
skipped #103772
trigger_build
 
Name Stage Failure
failed
CoMISo-VS2013-Qt-5.5.1-x64 Test
19>  Building Custom Rule E:/gitlab/builds/jYir6YD5/0/CoMISo/CoMISo/CMakeLists.txt
19>
19>Build succeeded.
19>
19>Time Elapsed 00:00:00.09
========== Build: 2 succeeded, 17 failed, 0 up-to-date, 0 skipped ==========

E:\gitlab\builds\jYir6YD5\0\CoMISo\CoMISo\rel>IF 1 NEQ 0 exit /b 1
ERROR: Job failed: exit status 1