Skip to content

Instantly share code, notes, and snippets.

from scipy.optimize import minimize
import numpy as np
from math import *
from sympy import *
dist = 1.38
center_x = 160.
center_y = 100.
placement = [
.file "main.cpp"
.local _ZL1x
.comm _ZL1x,4,4
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
pushq %rbp
jschall@jon-laptop:~/otkpp-read-only/otkpp$ cmake . -DWITH_FORTRAN=OFF
-- The CXX compiler identification is GNU 4.7.2
-- The C compiler identification is GNU 4.7.2
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
jschall@jon-laptop:~$ ./a.out
input df1 df2
0.0627905 5.93177e-05 5.93177e-05
0.125333 0.000350404 0.000350404
0.187381 0.00108856 0.00108856
0.24869 0.0024672 0.0024672
0.309017 0.00465813 0.00465813
0.368125 0.00781172 0.00781172
0.425779 0.0120573 0.0120573
0.481754 0.0175038 0.0175038