This repo is just for keeping track of notes, slides, etc., that are relevant for the development of SPECFEM++.
Poro-Elastic (PE)
Electro-magnetic (EM)
Project workflow (for any GitHub project) assuming that you have “forked” the repo:
- Sync your fork
- On your GitHub SPECFEM fork, choose a base branch (e.g. PE)
- Click “Sync fork”
- Get or update the branch in your local terminal
- Get
git clone [email protected]:<username>/SPECFEMPP.git
git checkout <base-branch>
- Update
git checkout <base-branch>
git pull origin <base-branch>
- Get
- Choose Issue to work on in the Project, e.g. #612 (Update the timescheme)
- Make sure to assign yourself to the issue!
- Create branch to work on
git checkout -b issue-<issue number> # e.g. issue-602
- Make and commit changes
- Make changes to files
- Stage changes:
git add <file you have worked on>
- Commit changes:
git commit -m ‘Commit message (what you did)’
- Upload changes:
git push origin issue-<issue number>
- On Github make a pull request (PR) from your new branch to the base-branch in PrincetonUniversity/SPECFEMPP
- Click on the PR tab on your GitHub fork page
- Choose to compare across forks
- Choose destination to PrincetonUniversity/SPECFEMPP at base branch
- Choose source to be username/issue-#issuenumber
- Now, click “Create New Pull request"
- You will be prompted to fill out the description about the PR after you which you can confirm PR creation by clicking "Create PR"
- The PR will now be reviewed by others and will eventually be merged, or you will be asked for some updates.
- While you wait for approval you can restart at 1.