This is an old revision of the document!
Installing COSY INFINITY on your computer
With your login and password in hand proceed to: Download
We strongly encourage you to download the manual called “COSYBeamMan100.pdf”
If you are using Windows:
Follow the instructions provided on the download page step 1 and download the files provided in step 4.
If you are using Linux:
These instructions should most probably be working on macOSX as long as you have a fortran
1: Download all the file provided on step 3 of the download page and store them in a dedicated folder. 2: If you are using the intel fortran compiler, just use make in your terminal in the correct folder to compile.
#: make
If you are not using the intel compiler, you will have to edit the Makefile file to reflect your compiler. For example if you are using the gcc compiler: gfortran
FC = gfortran -Wno-argument-mismatch FFLAGS= -m64 LINK = $(FC) LIBS = #LIBS = -L/usr/local/pgplot -lpgplot -L/usr/X11R6/lib -lX11 OBJ = foxy.o dafox.o foxfit.o foxgraf.o cosy: $(OBJ) $(LINK) -o cosy $(OBJ) $(LIBS)
With all compiler (other than the intel one) you will also have to edit the file dafox.f to replace line 1403 with line 1408.
Replace
IF(NTYP(IMSEC).NE.NRE) CALL FOXNTY(IMSEC) * * SLEEPQQ is an Intel Fortran specific, platform independent call. * CALL SLEEPQQ(NINT(CC(NBEG(IMSEC)))) * * SLEEP is not compiler specific and platform independent, * but only does full seconds, not milliseconds * C CALL SLEEP(NINT(1.D-3*CC(NBEG(IMSEC))))
with
IF(NTYP(IMSEC).NE.NRE) CALL FOXNTY(IMSEC) * * SLEEPQQ is an Intel Fortran specific, platform independent call. * * CALL SLEEPQQ(NINT(CC(NBEG(IMSEC)))) * * SLEEP is not compiler specific and platform independent, * but only does full seconds, not milliseconds * CALL SLEEP(NINT(1.D-3*CC(NBEG(IMSEC))))
In your terminal window you can use the command make to compile:
#: make
2: Now that the COSY INFINITY is executable exist, you will be able to run COSYscript. Download all the file in step 4 of the download page in your cosy folder.
3: Let's run COSY and create the binary file needed to run ion optic calculation, from your terminal call cosy and at the prompt provide cosy as the script name you want to excecute:
#: ./cosy ************************************ * * * C O S Y I N F I N I T Y * * * * FOXY LANGUAGE SYSTEM * * * * VERSION 10.0 * * * * (C) MSU 2017 * * * ************************************ GIVE SOURCE FILE NAME WITHOUT EXTENSION .FOX cosy --- BEGINNING COMPILATION --- BIN FILE WRITTEN: COSY
4: Congrats you are ready to go. Remember the path where you just installed everything because all your scripts will have to point to the file you just generated.
If you are using MacOSX: See the instruction for Linux and … finger crossed.