Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

particle diagnostics for time and angle #189

Closed
wants to merge 61 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
7a199ed
changes to build dependencies after install test
Dec 12, 2023
f3e7e62
updated circle example for tracking particle attributes
Dec 15, 2023
6147efd
added reading of particle time histogram variables and generation of …
Dec 15, 2023
fe9fa62
example producing same results as postprocessing
Jan 8, 2024
2d29a3f
added checks in geometry file to ensure input file for multiple surfa…
Jan 8, 2024
1df4d41
add particle_diagnostics to build system
Jan 10, 2024
b548cfa
Merge pull request #198 from ORNL-Fusion/main
hayes2419 Feb 13, 2024
66c605a
Update gitr.cpp with ANGLE particle diagnostics
hayes2419 Feb 13, 2024
c1957ec
Update gitrInput.cfg of circle example to include part diag angle inputs
hayes2419 Feb 13, 2024
bd941dc
Update particle_diagnostics.h with angle inputs
hayes2419 Feb 13, 2024
8aaf327
Update gitr.cpp to set ncDims and ncVars for ANGLE particle diagnostics
hayes2419 Feb 13, 2024
c1cd3ed
Update particle_diagnostics.cpp to initialize angle diagnostics
hayes2419 Feb 13, 2024
5ff8d4f
Update particle_diagnostics.cpp to include ANGLE histograms
hayes2419 Feb 14, 2024
cb70854
Update Particles.h to include transitAngle field
hayes2419 Feb 14, 2024
9425ff1
Update particle_diagnostics.cpp to fix typos
hayes2419 Feb 14, 2024
c57299c
Update particle_diagnostics.h to add in *_particle_angle_histogram
hayes2419 Feb 14, 2024
c214194
fix typos in gitr.cpp
hayes2419 Feb 14, 2024
674805a
Update particle_diagnostics.cpp to fix typo
hayes2419 Feb 14, 2024
b86933e
Update gitr.cpp to fix problem with dims_part_hist
hayes2419 Feb 14, 2024
0fcbfa9
Update gitr.cpp to declare new dims varnames
hayes2419 Feb 14, 2024
4edad84
Update gitr.cpp to add perpDist to history.nc
hayes2419 Feb 15, 2024
4a08a26
Update gitr.cpp to replace perpDist with perpDistanceToSurface
hayes2419 Feb 15, 2024
6c030ab
Update gitr.cpp to declare perpDistanceToSurface varnames
hayes2419 Feb 15, 2024
cac1e4d
Update history.h to include perpDistanceToSurface
hayes2419 Feb 15, 2024
1b916ab
Update history.h to fix typos
hayes2419 Feb 15, 2024
7f05b5e
Update history.h to add perpDistanceToSurface declaration
hayes2419 Feb 15, 2024
764363e
Update boris.cpp to update perpDistanceToSurface field of particle ob…
hayes2419 Feb 15, 2024
c2159fe
Update boris.cpp hoping to fix typos
hayes2419 Feb 15, 2024
2a8c176
Update boris.cpp to replace storing perp_dist with minDist
hayes2419 Feb 15, 2024
362214c
populate perpDistanceToSurface field of history.nc (hopefully)
hayes2419 Feb 15, 2024
a988b79
Update particle_diagnostics.cpp to bin particles falling outside the …
hayes2419 Feb 16, 2024
8042d1b
Update gitr.cpp to include pi constant from constants.h
hayes2419 Feb 19, 2024
d445120
Update particle_diagnostics.cpp to add log(angle) capability
hayes2419 Mar 5, 2024
df24c91
Update particle_diagnostics.h to add log(angle) capability
hayes2419 Mar 5, 2024
550b152
Update gitr.cpp to add log(angle) capability
hayes2419 Mar 5, 2024
1884cfa
Update particle_diagnostics.cpp to attempt to add behavior for times_…
hayes2419 Mar 5, 2024
133fc64
Update particle_diagnostics.h to add ; typo
hayes2419 Mar 5, 2024
199f665
Update particle_diagnostics.cpp to debug if/else syntax
hayes2419 Mar 5, 2024
5d9dc7f
Update particle_diagnostics.cpp debug attempt 3
hayes2419 Mar 5, 2024
70902bd
Update particle_diagnostics.cpp printf debugging 1
hayes2419 Mar 12, 2024
3685baf
Update particle_diagnostics.cpp printf debugging 2
hayes2419 Mar 12, 2024
55cf0b3
Update particle_diagnostics.cpp printf debug 3
hayes2419 Mar 12, 2024
39bc030
Update particle_diagnostics.cpp printf debug 4
hayes2419 Mar 12, 2024
fd4c9d2
Update gitr.cpp to add nSurfaces to particle_diagnostics
hayes2419 Mar 12, 2024
1827605
Update particle_diagnostics.cpp printf debug 4
hayes2419 Mar 12, 2024
7fd7f17
Update particle_diagnostics.cpp add comma
hayes2419 Mar 12, 2024
37033c6
Update particle_diagnostics.h to add nSurfaces declaration
hayes2419 Mar 12, 2024
5d0e0c2
Update particle_diagnostics.h typo
hayes2419 Mar 12, 2024
5e1da89
Update particle_diagnostics.h typo
hayes2419 Mar 12, 2024
c5bced9
Update particle_diagnostics.cpp typo
hayes2419 Mar 12, 2024
ce4e343
Update particle_diagnostics.cpp remove printf debugging statements
hayes2419 Mar 12, 2024
ac827b5
Update particle_diagnostics.cpp to try to debug nP issue
hayes2419 Apr 4, 2024
b753e70
Update particle_diagnostics.cpp to debug nP issue
hayes2419 Apr 4, 2024
3e7cbd5
Update particle_diagnostics.cpp to set weight to 0 at the end of the …
hayes2419 Apr 5, 2024
8f66230
turn off print statement debugging because the error was that you got…
Apr 15, 2024
55cf8a1
begin debugging angle=0 when charge=1
Apr 19, 2024
bba6f2b
deactivated file_io_tests, debug mode, cuda=1
Apr 24, 2024
6146f8f
hopefully resolving merge conflict in noninteractive podman .sh bashfile
hayes2419 Jun 12, 2024
30f28b3
maintenance
hayes2419 Jun 14, 2024
cc8066c
Update particle_diagnostics.cpp to comment out debug print statement
hayes2419 Jun 14, 2024
e6b1106
Update compile_time_options.cmake to build with Release mode by default
hayes2419 Jun 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMake/compile_time_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set( CMAKE_BUILD_TYPE "Release" )

# preprocessor definitions in source code are defined below:
set( description "(no description added yet)" )
set( GITR_USE_CUDA 0 CACHE STRING "${description}" FORCE )
set( GITR_USE_CUDA 1 CACHE STRING "${description}" FORCE )
set( GITR_USE_OPENMP 0 CACHE STRING "${description}" FORCE )
set( GITR_USE_MPI 0 CACHE STRING "${description}" FORCE )
set( GITR_USE_DOUBLE 1 CACHE STRING "${description}" FORCE )
Expand Down
19 changes: 10 additions & 9 deletions CMake/crosslink_components.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ target_link_libraries( GITR
spectroscopy
libconfig_cxx
libconfig_c
particle_diagnostics
utils
boris
surface_model
Expand Down Expand Up @@ -158,15 +159,15 @@ target_link_libraries( coulomb_tests
Catch2::Catch2WithMain
)

target_link_libraries( file_io_tests
libconfig_cxx
libconfig_c
flags
utils
boris
geometry_check
Catch2::Catch2WithMain
)
#target_link_libraries( file_io_tests
# libconfig_cxx
# libconfig_c
# flags
# utils
# boris
# geometry_check
# Catch2::Catch2WithMain
# )

target_link_libraries( interpolator_tests Catch2::Catch2WithMain )

Expand Down
1 change: 1 addition & 0 deletions CMake/define_source_components.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ set( non_gpu_targets

# conditionally compile as GPU targets
set( gpu_targets
particle_diagnostics
surface_model
interp2d
interpRateCoeff
Expand Down
2 changes: 1 addition & 1 deletion CMake/define_test_components.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ set( gpu_test_targets
cross_field_diffusion_tests
atomic_tests
coulomb_tests
file_io_tests
)
#file_io_tests

foreach( component IN LISTS cpu_test_targets )

Expand Down
1 change: 1 addition & 0 deletions CMake/enforce_build_order.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ if( dependencies )

endif()

add_dependencies( boris particle_diagnostics )
# ensure that all source targets are built before GITR
add_dependencies( GITR ${non_gpu_targets} ${gpu_targets} )

Expand Down
20 changes: 10 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
cmake -S $1 -B $2 -G Ninja \
-DNETCDF_C_HEADERS_DIR="/home/5n4/build_right/external/netcdf-c-install/include" \
-DNETCDF_CXX_HEADERS_DIR="/home/5n4/build_right/external/netcdf-cxx4-install/include" \
-DNETCDF_C_SHARED_LIB_DIR="/home/5n4/build_right/external/netcdf-c-install/lib" \
-DNETCDF_CXX_SHARED_LIB_DIR="/home/5n4/build_right/external/netcdf-cxx4-install/lib" \
-DLIBCONFIG_C_HEADERS_DIR="/home/5n4/build_right/external/libconfig_install/include" \
-DLIBCONFIG_CXX_HEADERS_DIR="/home/5n4/build_right/external/libconfig_install/include" \
-DLIBCONFIG_C_LIB_DIR="/home/5n4/build_right/external/libconfig_install/lib" \
-DLIBCONFIG_CXX_LIB_DIR="/home/5n4/build_right/external/libconfig_install/lib" \
cmake -S $1 -B $2 \
-DNETCDF_C_HEADERS_DIR="/opt/cray/pe/netcdf/4.9.0.9/nvidia/23.3/include" \
-DNETCDF_CXX_HEADERS_DIR="/opt/cray/pe/netcdf/4.9.0.9/nvidia/23.3/include" \
-DNETCDF_C_SHARED_LIB_DIR="/opt/cray/pe/netcdf/4.9.0.9/nvidia/23.3/lib" \
-DNETCDF_CXX_SHARED_LIB_DIR="/opt/cray/pe/netcdf/4.9.0.9/nvidia/23.3/lib" \
-DLIBCONFIG_C_HEADERS_DIR="/global/homes/t/tyounkin/code/libconfigBuild/gnu/include" \
-DLIBCONFIG_CXX_HEADERS_DIR="/global/homes/t/tyounkin/code/libconfigBuild/gnu/include" \
-DLIBCONFIG_C_LIB_DIR="/global/homes/t/tyounkin/code/libconfigBuild/gnu/lib" \
-DLIBCONFIG_CXX_LIB_DIR="/global/homes/t/tyounkin/code/libconfigBuild/gnu/lib" \
&> $2/cmake_output.txt ;

cmake --build $2 -- -j 0 &> $2/build_output.txt
cmake --build $2 -- -j &> $2/build_output.txt
29 changes: 29 additions & 0 deletions build/make_gitr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
source ../env.default.sh

cmake -DTHRUST_INCLUDE_DIR=$THRUST_DIR \
-DNETCDF_CXX_INCLUDE_DIR=$NETCDFCXX4INCLUDE \
-DNETCDF_CXX_LIBRARY=$NETCDFCXX4LIB \
-DLIBCONFIG_INCLUDE_DIR=$LIBCONFIG_INCLUDE_DIR \
-DLIBCONFIGPP_LIBRARY=$LIBCONFIGLIB \
-DLIBCONFIGPP_INCLUDE_DIR=$LIBCONFIG_INCLUDE_DIR \
-DNETCDF_DIR=$NETCDFDIR \
-DNETCDF_INCLUDE_DIR=$NETCDFINCLUDE \
-DNETCDF_LIBRARY=$NETCDFLIB \
-DUSE_CUDA=1 \
-DUSE_MPI=0 \
-DUSE_DOUBLE=1 \
..
# -DNETCDF_CXX_INCLUDE_DIR=$NETCDFCXX4INCLUDE \
# -DNETCDF_CXX_LIBRARY=$NETCDFLIB_CPP \
# -DNETCDF_DIR=$NETCDFDIR \
# -DNETCDF_INCLUDE_DIR=$NETCDFINCLUDE \
# -DNETCDF_LIBRARY=$NETCDFLIB \
# -DLIBCONFIGPP_LIBRARY=$LIBCONFIGLIB \
# -DLIBCONFIGPP_INCLUDE_DIR=$LIBCONFIG_INCLUDE_DIR \
# -DCPPFLAGS=-I${H5DIR}/include \
# -DLDFLAGS=${H5DIR}/lib/libhdf5.dylib \
# -DHDF5_LIBRARIES=${H5DIR}/lib/libhdf5.a \
# -DHDF5_INCLUDE_DIRS=${H5DIR}/include \
# -DHDF5_C_COMPILER_EXECUTABLE=${H5DIR}/bin/h5pcc \
# -DHDF5_HL_LIBRARIES=${H5DIR}/lib/libhdf5_hl.dylib \
5 changes: 5 additions & 0 deletions containers/run_podman_noninteractive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
podman-hpc run -i -t --rm \
--name gitr_container \
--gpu \
-v $(pwd):/host \
docker.io/stonecoldhughes/gitr:noninteractive
2 changes: 1 addition & 1 deletion dependencies/build_all_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export GITR_TOP_LEVEL=~/trash
export GITR_TOP_LEVEL=$PWD
./build_zlib.sh
./build_m4.sh
./build_hdf5.sh
Expand Down
27 changes: 0 additions & 27 deletions env.default.sh

This file was deleted.

56 changes: 56 additions & 0 deletions examples/circle/input/gitrGeometry.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
geom =
{
x1 =
[
-10000.0
];
z1 =
[
0.0
];
x2 =
[
10000.0
];
z2 =
[
0.0
];
slope =
[
0.0
];
intercept =
[
0.0
];
length =
[
20000.0
];
Z =
[
1.0,
1.0
];
surface =
[
1
];
inDir =
[
-1
];
potential =
[
25
];
y1 = -10000.0;
y2 = 10000.0;
periodic = 0;
theta0 = 0.0;
theta1 = 0.0;
periodic_bc_x0 = -10000.0;
periodic_bc_x1 = 100000.0;
periodic_bc_x = 0;
};
Loading
Loading