forked from danieljprice/phantom
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Lionel Siess edited this page Dec 7, 2023
·
22 revisions
local commit
git status
git diff src/main/eos.F90
git add filename
git commit -m "these are all the changes I made made"
git push
getting a specific revision
git checkout 536aa21 -b Krome
undo last commit while keeping the changes
git reset --soft HEAD~1
reset all local changes (commit not done yet)
git reset --hard
getting updates:
git stash
git pull
git stash pop
branches
git branch -a --> list available branches
git branch -r --> list remote branches
git checkout -b tripSys origin/tripSys --> download branch tripSys from origin
git checkout -b mybranch --> create new branch
git push origin mybranch --> push new branch on github
git branch -d mybranch --> delete mybranch
set OMP THREAD number
export OMP_NUM_THREADS=1
git checkout master
git pull
git fetch upstream
git merge upstream/master
git checkout phantom_public
git pull
git checkout master
git merge phantom_public
Working solution : prevent the automatic commit of the merge, remove devel and commit without devel
git checkout phantom_public
git merge --no-commit --no-ff master
git reset -- devel
rm -Rf devel
git commit
The solution with .gitattribues does not work for me ?
git config --global merge.ours.driver true
git checkout phantom-public
echo "devel merge=ours" >> .gitattributes
git merge --no-commit --no-ff master
Pre-processor flags: -DWIND -DSINK_RADIATION -DDUST_NUCLEATION -DMCFOST -DINJECT_PARTICLES -DLIVE_ANALYSIS
mcfost -get_para
mv ref4.1.para wind.para
in splash, type /png instead of /xw at the command prompt. This generates a series of images splash_0000.png splash_0001.png etc.
or use the command line
splash -r 6 -dev /png binary_00*
use the script provided to make a movie:
~/splash/scripts/movie.sh
which just executes ffmpeg as follows
ffmpeg -i splash_%04d.png -r 10 -vb 50M -bt 100M -vcodec mpeg4 -vf setpts=4.*PTS movie.mp4