-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:onera/Cassiopee
- Loading branch information
Showing
9 changed files
with
145 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Using git | ||
|
||
## Forks | ||
To help developping Cassiopee, you have to first fork the | ||
Cassiopee repository. | ||
|
||
Regularly, you will have to "sync" your fork using the "sync" button | ||
on the web site of your fork. | ||
When syncing, your fork is updated from the main repository. | ||
|
||
## Pulling | ||
Pulling is updating your sources from your fork (after syncing): | ||
```sh | ||
git pull | ||
``` | ||
If you have modified the same sources as the one that has been touched on the main repository, this operation will fail. You then have to move your modification aside by doing: | ||
```sh | ||
git stash | ||
git pull | ||
``` | ||
The pull will be ok, since no local modification exists. You now have to put back your modifications with: | ||
```sh | ||
git stash apply | ||
``` | ||
You local modifications will be merged. Merge problem may occur and you will have to edit some files to choose the right code. | ||
|
||
## Commiting | ||
Commiting will commit your modifications locally. Nothing is sent. | ||
To check the files you have modified: | ||
```sh | ||
git status | ||
``` | ||
To see the differences: | ||
```sh | ||
git diff <file> | ||
``` | ||
|
||
Before commiting, you must first tag files for commit using: | ||
```sh | ||
git add <file> | ||
``` | ||
or tag all modified files: | ||
```sh | ||
git add -u | ||
``` | ||
|
||
You can then commit: | ||
```sh | ||
git commit -m "message" | ||
``` | ||
|
||
## Pushing to your fork | ||
Pushing is submitting your modifications to your fork. | ||
```sh | ||
git push | ||
``` | ||
|
||
## Merging to main repository | ||
|
||
Finally, to send your modifications to the main repository, you have to | ||
submit a merge request. Go to your fork web site and click on "submit merge request". Add some comments about what you have down and click ok. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,57 @@ | ||
# Installation sous msys2 (windows) | ||
# Installation on msys2 (windows) | ||
|
||
## Install msys2 | ||
Download msys2 (https://www.msys2.org) | ||
Install it | ||
and install it. | ||
|
||
## Install dependencies | ||
In an msys2 mingw64 terminal: | ||
|
||
pacman -S mingw64/mingw-w64-x86_64-gcc | ||
pacman -S mingw64/mingw-w64-x86_64-gcc-fortran | ||
pacman -S mingw64/mingw-w64-x86_64-python | ||
pacman -S mingw64/mingw-w64-x86_64-python-numpy | ||
pacman -S mingw64/mingw-w64-x86_64-scons | ||
pacman -S mingw64/mingw-w64-x86_64-python-pip | ||
pacman -S mingw64/mingw-w64-x86_64-python-pip-tools | ||
pacman -S mingw64/mingw-w64-x86_64-hdf5 | ||
pacman -S mingw64/mingw-w64-x86_64-msmpi | ||
pacman -S mingw64/mingw-w64-x86_64-oce | ||
```shell | ||
pacman -S mingw64/mingw-w64-x86_64-gcc | ||
pacman -S mingw64/mingw-w64-x86_64-gcc-fortran | ||
pacman -S mingw64/mingw-w64-x86_64-python | ||
pacman -S mingw64/mingw-w64-x86_64-python-numpy | ||
pacman -S mingw64/mingw-w64-x86_64-scons | ||
pacman -S mingw64/mingw-w64-x86_64-python-pip | ||
pacman -S mingw64/mingw-w64-x86_64-python-pip-tools | ||
pacman -S mingw64/mingw-w64-x86_64-hdf5 | ||
pacman -S mingw64/mingw-w64-x86_64-msmpi | ||
pacman -S mingw64/mingw-w64-x86_64-oce | ||
``` | ||
|
||
## Install Cassiopee | ||
|
||
export CASSIOPEE=/d/johndo/Cassiopee | ||
export MACHINE=win64 | ||
```shell | ||
export CASSIOPEE=/d/johndo/Cassiopee | ||
export MACHINE=win64 | ||
|
||
source $CASSIOPEE/Cassiopee/Envs/sh_Cassiopee_r8 | ||
cd $CASSIOPEE/Cassiopee | ||
./install | ||
source $CASSIOPEE/Cassiopee/Envs/sh_Cassiopee_r8 | ||
cd $CASSIOPEE/Cassiopee | ||
./install | ||
``` | ||
|
||
## Some usefull pacman commands | ||
|
||
Update system: | ||
|
||
pacman -Syu | ||
```shell | ||
pacman -Syu | ||
``` | ||
|
||
Find package matching keyword: | ||
|
||
pacman -Ss <keyword> | ||
```shell | ||
pacman -Ss <keyword> | ||
``` | ||
|
||
Install package: | ||
|
||
pacman -S <package> | ||
```shell | ||
pacman -S <package> | ||
``` | ||
|
||
List installed packages: | ||
```shell | ||
pacman -Qe | ||
``` | ||
|
||
pacman -Qe | ||
|
||
Remove package: | ||
|
||
pacman -Rs <package> | ||
```shell | ||
pacman -Rs <package> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,34 @@ | ||
# Installation sous ubuntu (linux) | ||
# Installation on ubuntu (linux) | ||
|
||
## Install dependencies | ||
|
||
sudo apt-get install python-dev | ||
sudo apt-get install python-numpy | ||
sudo apt-get install scons | ||
sudo apt-get install gcc | ||
sudo apt-get install gfortran | ||
sudo apt-get install xorg-dev | ||
```shell | ||
sudo apt-get install python3-dev | ||
sudo apt-get install python-numpy | ||
sudo apt-get install scons | ||
sudo apt-get install gcc | ||
sudo apt-get install gfortran | ||
sudo apt-get install hdf5 | ||
sudo apt-get install xorg-dev | ||
``` | ||
|
||
## Install Cassiopee | ||
|
||
export CASSIOPEE=/d/johndo/Cassiopee | ||
export MACHINE=ubuntu | ||
```shell | ||
export CASSIOPEE=/d/johndo/Cassiopee | ||
export MACHINE=ubuntu | ||
|
||
source $CASSIOPEE/Cassiopee/Envs/sh_Cassiopee_r8 | ||
cd $CASSIOPEE/Cassiopee | ||
./install | ||
source $CASSIOPEE/Cassiopee/Envs/sh_Cassiopee_r8 | ||
cd $CASSIOPEE/Cassiopee | ||
./install | ||
``` | ||
|
||
## Using apt_get | ||
|
||
Find package from keyword: | ||
```shell | ||
apt-cache search <keyword> | ||
``` | ||
|
||
Install package: | ||
```shell | ||
sudo apt-get install <package> | ||
``` |