In order to compile and run ALGENCAN we needed to change some of its
files too.
We modified $(ALGENCAN)/Makefile in the following way:
Lines 6 and 7:
FC := gfortran-4.2
CC := gcc-4.2
Line 11:
LDFLAGS := -O4 -shared -undefined dynamic_lookup
Lines 35 and 36:
PYTHONINC :=
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
PYTHONLIB := /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
We also needed to modify dim.par ($(ALGENCAN)/sources/algencan/dim.par)
reducing the sizes of all parameters (larger values may be ok, that
depends on your system memory limits):
parameter ( mmax = 500 )
parameter ( nmax = 500 )
parameter ( nsmax = 100 )
parameter ( nsysmax = 500 )
parameter ( nnzmax = 100 )
parameter ( jcnnzmax = 100 )
parameter ( hnnzmax = 100 )
I would like to note that these changes in dim.par were enough to solve
the problem described by toyprob.py, but you must change you dim.par
considering the problem you really want to solve.
Best wishes,
Ricardo