AMMRL: SpinWorks source code available

From: Kirk Marat <Kirk.Marat_at_umanitoba.ca>
Date: Thu, 7 Aug 2014 19:28:39 +0000

I am making the source code for SpinWorks available to AMMRL members.

SpinWorks will run on many Linux systems under the mono run-time environment and under Windows with the .NET run-time environment. Mono is available for Macs as well, but I have no feedback on mono for Macs. Mono can be downloaded from:

http://www.go-mono.com/mono-downloads/download.html

Pre-compiled versions are available for OpenSUSE, Ubuntu, Debian and MacOS (I have only tested SpinWorks on OpenSUSE and Ubuntu). Source code is available for those who which to compile it for other platforms. I have not yet had any luck getting mono to run correctly on Red Hat.

In order to compile SpinWorks for Linux or Macs you will need the monodevelop IDE. Note that SpinWorks is written in C# (that's C-sharp not C-hashtag :-) ), which is closer to Java than traditional C, ANSI C or even C++. Monodevelop will produce a SpinWorks.exe file. This file cannot be run directly, but can be run with a simple command or script like: mono SpinWorks.exe &. I typically put a run script, SpinWorks.exe, any simulation modules, and the pdf manual all in /usr/local/bin. Monodevelop can be downloaded from:

http://monodevelop.com/download

To compile for Windows, you can use monodevelop (released as Xamarin Studio) or Microsoft Visual Studio 2010 Professional. Visual Studio gives you the advantages of having a dialog designer, etc. It is not free, but the academic price is reasonable. As downloaded, the SpinWorks source is configured for Linux. In order to configure for Windows, search the code files and comment out all occurrences of "#define MONO" (currently 8 places). The only differences between the Linux and Windows configurations are in some of the default paths used by SpinWorks and some Windows features (e.g. Windows clipboard) that are not available in Linux.

After "untarring" the download, you will have a folder called SpinWorks containing all of the necessary files. In order to open SpinWorks in monodevelop or Xamarin, select the "SpinWorks.sln" (or SpinWorks.csproj) file with the File->Open command. This will load all of the SpinWorks source files into the file browser at the left of the monodevelop/Xamarin window. The rest is left as an exercise for the student... If you are using MS Visual Studio, I can send you a slightly larger "solution" that includes the necessary materials to make a Windows installer package. On Windows, the SpinWorks.exe file is directly executable.

You are free to include parts of SpinWorks into your own work, provided that a copy of the copyright and warranty disclaimer that is at the top of every SpinWorks source file is included (standard gnu stuff). There are some parts of SpinWorks that are derived from LINPACK and "Numerical Recipes". If you use these, the original source must also be acknowledged. The DNMR3 and MEXICO dynamic NMR modules are not yet available for Linux. The NUMMRIT simulation module is available (sim_main.tar) is available. It will compile with any C compiler (standard makefile method). You are also free to distribute the source to others, but inclusion of any part into commercial software is not permitted.

If you find bugs or add enhancement to SpinWorks, please forward them to me and I will be happy to try to make the necessary changes in the "trunk" version.

The ftp download site is:
visar.chem.umanitoba.ca
the l_o_g_i_n is: spinworks and the pass_word is ammrl_02

Cheers!
Kirk

Kirk Marat, Ph. D.
NMR Facility Manager
Dept. Of Chemistry, University of Manitoba
Winnipeg, MB, Canada, R3T 2N2
Ph: 204-474-6259, FAX: 204-474-7608, Cell: 204-228-6474
Received on Thu Aug 07 2014 - 09:29:43 MST

This archive was generated by hypermail 2.4.0 : Sun Jun 18 2023 - 17:57:04 MST