This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cosy_installation [2018/08/23 14:46] couder created |
cosy_installation [2018/09/10 12:08] (current) schatz |
||
---|---|---|---|
Line 8: | Line 8: | ||
Follow the instructions provided on the download page step 1 and download the files provided in step 4. | Follow the instructions provided on the download page step 1 and download the files provided in step 4. | ||
+ | Once the files are downloaded, please run cosy from the folder where the files from step 4 are stored and when prompted enter the name cosy. This will create the binary file needed to run ion optic calculation. | ||
__If you are using Linux:__ | __If you are using Linux:__ | ||
Line 14: | Line 15: | ||
1: Download all the file provided on step 3 of the download page and store them in a dedicated folder. | 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 to compile. | + | 2: If you are using the intel fortran compiler, just use make in your terminal in the correct folder to compile. However, you may need to comment out the part that is related to PGPlot |
< | < | ||
- | If not, edit the Makefile file to reflect your compiler. For example | + | If you are not using the intel compiler, you will have to edit the Makefile file to reflect your compiler. For example |
+ | < | ||
+ | FC = gfortran | ||
+ | FFLAGS= -m64 | ||
+ | LINK = $(FC) | ||
+ | LIBS = | ||
+ | #LIBS = -L/ | ||
+ | OBJ = foxy.o dafox.o foxfit.o foxgraf.o | ||
+ | |||
+ | cosy: $(OBJ) | ||
+ | $(LINK) -o cosy $(OBJ) $(LIBS) | ||
+ | </ | ||
+ | |||
+ | Note: I strongly suggest (and provided in the example avove) to comment the need for PGplot out. | ||
+ | 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) | ||
+ | * | ||
+ | * | ||
+ | * | ||
+ | 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) | ||
+ | * | ||
+ | * | ||
+ | * | ||
+ | * 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: | ||
+ | |||
+ | < | ||
+ | |||
+ | 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, | ||
+ | < | ||
+ | #: ./cosy | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | GIVE SOURCE FILE NAME WITHOUT EXTENSION .FOX | ||
+ | | ||
+ | |||
+ | --- 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:__ | ||
+ | |||
+ | You can of course follow the Linux instructions to get the latest version. | ||
+ | |||
+ | Alternatively, | ||
+ | |||
+ | This provides a somewhat nicer environment to run COSY | ||
+ | |||
+ | |||
+ | __Note: If you see the following error:__ | ||
+ | < |