Work with APT (Accurate Particle Tracer)

APT is a component of the GAPS project, employing geometric algorithms to ensure prolonged stability and precision in the trajectories of particles or samplings.


Local Work Advantages

  1. Fast and Stable: No server wait times or reconnections needed.
  2. GitHub Copilot Access: Requires local GitHub connection.
  3. Universal Compilation: APT.out can compile locally for distribution on various servers.

Installation

  1. Install CentOS 7.3 and necessary packages for APT compilation (Tutorial coming soon).
  2. Modify ./Makefile for hdf5 and mpi library paths (Tutorial coming soon).

Repository Setup

git clone http://114.214.161.12:9980/you/your_project.git
git checkout your_branch

Or using ssh:

git clone git@114.214.161.12:you/your_project.git
git checkout your_branch

For existing local repositories, add GitLab as a remote repository:

git remote add origin http://
git remote add origin git@
git remote set-url origin git@

GitLab Interaction

git pull
git add .
git commit -m "message"
git push

Use ssh keys to avoid password entry:

  1. Generate ssh keys locally: ssh-keygen -t rsa -b 4096 -C "your_label"
  2. Copy the public key to GitLab: cat ~/.ssh/id_rsa.pub

Compilation

make
make install

For Clangd code analysis, compile with intercept-build:

yum -y install clang-analyzer
intercept-build make

Debug mode:

make debug
make install_debug
make clean_debug

Compile with CMake (New)

Edit apt/CMakeLists.txt for hdf5 and mpi paths. Options:

  1. USE_HDF5: True for hdf5 data format, False for GAPS-IO.
  2. DEBUG_MODE: True for debug, False for release.
  3. CMAKE_INSTALL_PREFIX: Path for installed files (apt/DataAnalysis by default).
mkdir build
cd build
cmake ..
make && make install

Upload APT.out to FUYUN

./push_to_FUYUN.sh

Use ssh keys:

  1. Copy the public key locally: cat ~/.ssh/id_rsa.pub
  2. @FUYUN: Paste the public key to ~/.ssh/authorized_keys.

Connect to FUYUN

ssh username@fuyunIPaddress:~/

APT.out is in the specified directory in ./scp_APTout_to_FUYUN.sh.

@FUYUN: Update APT.out

cd ~/apt/DataAnalysis/your_working_directory
./updateAPT.sh

@FUYUN: Run APT.out

python ./create_config.py
bsub < mpi_run.sh

Last Modified:

Categories:

,

Tags: