Installation on MS Windows (g77 version)
Getting the code
First make a folder for the code. Then, depending on what you want,
select files from the following list and put them in that folder.
- The source code with my bug fixes. Save the
link to your code directory, unzip and it will create a folder "md"
with many subfolders.
(If you want just this code, you will need to compile by copying all
relevant files from all the subdirectories together in a single folder,
and compile main.f with your fortran compiler.
If you want my basic improvements, do not copy the
files together, but go to the next item.)
- The actual program directory with my mods.
If you unzip this, it will create a folder "mdexe" in addition to
folder md.
- My tools. To use my tools, you
will also need ranlib from
netlib. For your convenience, I have a copy of that one too
here.
Unzip both archives, it will create several folders.
(You do not need the previous two items to get my tools.)
Running the code
To run the program
- Create a coord.d file using the separate program chiral found in
the chiral folder (if you downloaded the tools),
maketube, or other. Put it in the mdexe folder.
(There is a diamond.d file in md, but that one crashes for some
reason.)
- Edit input.d in the mdexe folder to set the run parameters.
- Run main.exe. Or, to avoid the screen disappearing on termination,
run main.bat instead.
- Examine output.d (and other files) for the results.
Making changes
If you need to make changes in the Brenner code (increasing storage,
changing parameters, ...), you will need to rebuild the main.exe
executable. You can do that as follows:
- Download and install the full Gnu
gcc compiler collection for Windows.
- Open a DOS window by running
cmd or command, and activate fortran in the window using
"c:\gcc-2.95.2\mingw32.bat".
- Cd to the mdexe folder and remake
the program using "g77 -I. -o main.exe main.f".
(Note the point behind -I.)
If you need to do things my tools do not, there is a program in the
coordmod folder called custom.f that you can customize yourself to do
them. To create the custom tool from the code you created, use "make
custom" in the DOS window.
Return