From 8135f3d3aadf22ed5f231b477e0c68f0e27a9773 Mon Sep 17 00:00:00 2001 From: David Minton Date: Mon, 14 Dec 2020 09:33:40 -0500 Subject: [PATCH] Updated README with markdown formatting and better instructions. Updated .gitignore to allow for empty build dir --- .gitignore | 2 -- README | 22 ++++++++++++++++------ README.md | 39 +++++++++++++++++++++++++++++++++++++++ build/.gitignore | 2 ++ 4 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 README.md create mode 100644 build/.gitignore diff --git a/.gitignore b/.gitignore index aff00191..f6ef0a31 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,6 @@ build/src/CTEM *.swp -build/ - configure config/ diff --git a/README b/README index e0d5a8a8..8d4f6ef0 100644 --- a/README +++ b/README @@ -1,9 +1,10 @@ -Installing CTEM for code development +### Installing CTEM for code development ************************************ CTEM uses Autotools to automate makefile generation. To set up your system, first run the script -$ ./autogen.sh + +`$ ./autogen.sh` You may have to modify the contents of src/Makefile.am in order to set the appropriate flags for your compiler. The default file contains examples of @@ -11,19 +12,28 @@ common flags (optimized code vs. debugging code) for gfortran and ifort. Simply activate the appropriate set of flags for your system. From then on, you simply need to execute the following: -$ mkdir build + +``` $ cd build $ ../configure $ make clean $ make +``` -The executable that is generated is build/src/CTEM +The executable that is generated is `build/src/CTEM` -Running CTEM +************************************ +### Running CTEM ************************************ An example CTEM simulation is included in the idl directory. You can execute the CTEM run using the IDL frontend using: -$ idl < start.in + +`$ idl < start.in` + +Alternatively you may wish to use the Python front end. + + +`$ python3 ctem_driver.py` The run parameters are controlled by the ctem.in file. diff --git a/README.md b/README.md new file mode 100644 index 00000000..8d4f6ef0 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +### Installing CTEM for code development +************************************ + +CTEM uses Autotools to automate makefile generation. To set up your system, +first run the script + +`$ ./autogen.sh` + +You may have to modify the contents of src/Makefile.am in order to set the +appropriate flags for your compiler. The default file contains examples of +common flags (optimized code vs. debugging code) for gfortran and ifort. Simply +activate the appropriate set of flags for your system. + +From then on, you simply need to execute the following: + +``` +$ cd build +$ ../configure +$ make clean +$ make +``` + +The executable that is generated is `build/src/CTEM` + + +************************************ +### Running CTEM +************************************ +An example CTEM simulation is included in the idl directory. You can execute the +CTEM run using the IDL frontend using: + +`$ idl < start.in` + +Alternatively you may wish to use the Python front end. + + +`$ python3 ctem_driver.py` + +The run parameters are controlled by the ctem.in file. diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 00000000..c96a04f0 --- /dev/null +++ b/build/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file