--- /dev/null
+CPPFLAGS = -DPROCOR -DLINUX -DPGI -DISNAN -DMP -DMPI -DUNRES \
+ -DSPLITELE -DAMD64 -DLANG0
+# -DCRYST_BOND -DCRYST_THETA -DCRYST_SC
+#-DCRYST_TOR
+# -DPROCOR
+# -DTSCSC
+#-DTIMING \
+# -DMOMENT
+#-DPARVEC
+#-DPARINT -DPARINTDER
+
+#INSTALL_DIR = /usr/local/mpich-1.2.0
+INSTALL_DIR = /users/software/mpich-1.2.7p1_intel-10.1_em64_ssh/
+#INSTALL_DIR = /opt/mpi/mvapich
+#INSTALL_DIR = /users/local/mpi64/mpich-1.2.7p1/
+#
+#FC= /usr/local/opt/intel/compiler60/ia32/bin/ifc
+FC= ifort
+#FCL = ${INSTALL_DIR}/bin/mpif77
+#CC = cc
+
+OPT = -O3 -ip -w
+
+FFLAGS = -c ${OPT} -I$(INSTALL_DIR)/include
+FFLAGS1 = -c -w -g -O0 -d2 -CA -CB -I$(INSTALL_DIR)/include
+FFLAGS2 = -c -w -g -O0 -I$(INSTALL_DIR)/include
+FFLAGS3 = -c -w -O3 -mp
+FFLAGSE = -c -w -O3 -ipo -ipo_obj -opt_report -I$(INSTALL_DIR)/include
+
+BIN = ../../../bin/unres/CSA/unres_dfa_csa-Yi.exe
+#BIN = ../../../bin/unres/CSA/unres_csa_ifort_mpich-1.2.7p1.exe
+#LIBS = -L$(INSTALL_DIR)/lib -lmpich
+LIBS = -lpthread -L$(INSTALL_DIR)/lib -lmpich
+
+ARCH = LINUX
+PP = /lib/cpp -P
+
+#all: unresCSA
+all: unres
+
+.SUFFIXES: .F
+.F.o:
+ ${FC} ${FFLAGS} ${CPPFLAGS} $*.F
+
+
+object = unres_csa.o arcos.o cartprint.o chainbuild.o initialize_p.o \
+ matmult.o readrtns_csa.o parmread.o \
+ pinorm.o randgens.o rescode.o intcor.o timing.o misc.o intlocal.o \
+ cartder.o checkder_p.o econstr_local.o energy_p_new_barrier.o \
+ gradient_p.o minimize_p.o sumsld.o \
+ cored.o rmdd.o geomout_min.o readpdb.o \
+ intcartderiv.o \
+ MP.o printmat.o convert.o int_to_cart.o \
+ dfa.o \
+ together.o csa.o minim_jlee.o shift.o diff12.o bank.o newconf.o ran.o \
+ indexx.o prng_32.o contact.o gen_rand_conf.o \
+ sc_move.o test.o local_move.o rmsd.o fitsq.o elecont.o djacob.o \
+ distfit.o banach.o TMscore_subroutine.o minim_mult.o
+
+#unresCSA: ${object}
+unres: ${object}
+# cc -o compinfo compinfo.c
+# ./compinfo
+ ${FC} ${FFLAGS} cinfo.f
+# ${FCL} -static-libcxa ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
+ ${FC} ${OPT} ${object} cinfo.o ${LIBS} -o ${BIN}
+
+clean:
+ /bin/rm *.o *.il
+
+chainbuild.o: chainbuild.F
+ ${FC} ${FFLAGS} ${CPPFLAGS} chainbuild.F
+
+matmult.o: matmult.f
+ ${FC} ${FFLAGS} ${CPPFLAGS} matmult.f
+
+parmread.o : parmread.F
+ ${FC} ${FFLAGS} ${CPPFLAGS} parmread.F
+
+intcor.o : intcor.f
+ ${FC} ${FFLAGS} ${CPPFLAGS} intcor.f
+
+cartder.o : cartder.F
+ ${FC} ${FFLAGS} ${CPPFLAGS} cartder.F
+
+readpdb.o : readpdb.F
+ ${FC} ${FFLAGS2} ${CPPFLAGS} readpdb.F
+
+sumsld.o : sumsld.f
+ ${FC} ${FFLAGS} ${CPPFLAGS} sumsld.f
+
+cored.o : cored.f
+ ${FC} ${FFLAGS3} ${CPPFLAGS} cored.f
+
+rmdd.o : rmdd.f
+ ${FC} ${FFLAGS} ${CPPFLAGS} rmdd.f
+
+energy_p_new_barrier.o : energy_p_new_barrier.F
+ ${FC} ${FFLAGSE} ${CPPFLAGS} energy_p_new_barrier.F
+
+gradient_p.o : gradient_p.F
+ ${FC} ${FFLAGSE} ${CPPFLAGS} gradient_p.F
+
+dfa.o : dfa.F
+ ${FC} -mp ${FFLAGS3} ${CPPFLAGS} dfa.F
+
+
+
call contact(.false.,ncont_ref,icont_ref,co)
if (sideadd) then
+C Following 2 lines for diagnostics; comment out if not needed
+ write (iout,*) "Before sideadd"
+ call intout
if(me.eq.king.or..not.out1file)
& write(iout,*)'Adding sidechains'
maxsi=1000
endif
enddo
endif
+C 10/03/12 Adam: Recalculate coordinates with new side chain positions
+ call chainbuild
+C Following 2 lines for diagnostics; comment out if not needed
+ write (iout,*) "After sideadd"
+ call intout
endif
if (indpdb.eq.0) then