-
Notifications
You must be signed in to change notification settings - Fork 631
FDS Daily Workflow
###Introduction
In this wiki we will describe how to work within "our system" in the firemodels group. As a prerequisite, read the Git Notes Getting Started wiki. Here we will assume you have forked the firemodels/fds-smv repository to <your GitHub username>/fds-smv
and have cloned your repo to your local account on our linux cluster "blaze".
The purpose of this workflow is to keep your repository up-to-date with the latest changes to the development version of FDS. We expect developers in our group and all collaborators doing research to work with the latest development version of the code. The build status for the latest version is given here: Firebot_Build_Staus. If the build status is "Build Failure!", you should skip updating for that particular day.
If you are brand new to working on unix/linux systems, it will be very helpful if you do a little homework and get up to speed on some basic commands. Note: Be very careful with rm
. And, unless you really know what you are doing, do not type rm *
. You will be very disappointed. There is no "undo" from this operation in linux.
###Adding Aliases to Your .bashrc File
It will be handy to have a couple of aliases established for running different versions of FDS.
If you have not already, open a shell (Terminal on Mac, Putty on Windows) and ssh
into blaze. Type
$ ssh <hostname>
Enter password
Now you are in your home directory. Open your .bashrc
file with vim
. Type
$ vi .bashrc
and make sure your have the following lines.
export FDSSMV=~/<YOUR REPO NAME HERE>
alias fds_db="$FDSSMV/FDS_Compilation/intel_linux_64_db/fds_intel_linux_64_db"
alias fds_dv="$FDSSMV/FDS_Compilation/intel_linux_64_dv/fds_intel_linux_64_dv"
alias qfds.sh="$FDSSMV/Utilities/Scripts/qfds.sh"
###Step 0: Get Some Coffee
###Step 1: Update Your Repository
For this example, I will be the user with an account on blaze.
If you have not already, open a shell (Terminal on Mac, Putty on Windows) and ssh
into blaze. Type
$ ssh <hostname>
Enter password
Change directories ("cd") into your repo's directory. I keep my forked repo in ~/GitHub/fds-smv_rmcdermo/
. So, I type
$ cd GitHub/fds-smv_rmcdermo
Fetch changes from the firemodels central repository. Again, this assumes you have correctly setup firemodels/fds-smv for remote tracking (see Git Notes Getting Started).
$ git remote update
Fetching origin
...
Fetching firemodels
...