Skip to content

rguitton/JUNO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JUNO

Connect to remote computer

  1. Log to one of the multiple computer of the m2psa ssh username@sbgli[1..20].in2p3.fr
    • N.B: choose a (small) number between 1 and 20. If an error occurs, try another number. In fact, many users can be connected, you have to choose a free one. You will have to enter your password later. Example: ssh [email protected]
  2. Log to a specific environment ssh sbglmd[1..20]
  3. Launch the ROOT environment source /scratch/jcerasol/root_course/setup_root.sh

Clone a git repository

  1. Create a new repository wherever you want, let's call it TIPP mkdir TIPP
  2. Init a git session git init
  3. Clone the git repository.
    • Try : git clone [email protected]:roronoarapha/JUNO.git
    • N.B: Maybe you will have to generate a ssh key, so do : ssh-keygen
    • If that doesn't work, use : git clone https://github.com/roronoarapha/JUNO.git

Check you got this arborescence (at the minimum)

  • JUNO
    • bin/
    • build/
    • include/
      • fonctions.h
      • plotter.h
    • src/
      • main.cpp
      • fonctions.cpp
      • plotter.cpp
    • output/
    • CMakeList.txt

Check the branch

  1. Go in JUNO, do cd JUNO

  2. To see all the available branches, do : git branch -a

  3. The branch name with a star is the current branch. Example :

    *main
    remotes/origin/HEAD -> origin/main
    remotes/origin/main
    remotes/origin/model_sigma
    remotes/origin/newfeature/rootgraph`
    
  4. (optional, your already are on the main branch) Got a remote branch in local. Example : git checkout -b newfeature/rootgraph origin/newfeature/rootgraph

Launch our code

  1. Be sure you are in the JUNO folder
  2. Go in the folder build
  3. For a first use, trash its contain rm -r *
    • N.B Do not use this command line without thinking n times about what you want to do
  4. From here, you can also trash the output folder, do rm ../output/*
  5. Generate a Makefile associated to the project with cmake ..
  6. Create an executable with make
  7. Execute the code with ../bin/monExe

This is the end

  1. Check the output folder to got some graphics
  2. Check your screen output to got some informations
  3. Here are some few steps to download the contain of the output folder in your personal computer
    • Assuming you are in the folder build, do : cd ../output
    • Do pwd to got your current absolute path, let's call it /remote_output_path
    • Open a new terminal on your local computer
    • Choose a directory where you can save the results of our project (example: /home/TIPP_2024/TIPP_Raphael_Felix/output)
    • Enter in this directory
    • From there, do : scp [email protected]:/remote_output_path/* ./. You will have to enter your password.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published