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
import argparse | |
import pickle | |
import yaml | |
import logging | |
import h5py | |
from os.path import join | |
import numpy as np | |
from tqdm import tqdm | |
import scipy.sparse as sp_sparse |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Overhead ╎ [+additional indent] Count File:Line; Function | |
========================================================= | |
╎1 @Base/dict.jl:497; getindex(h::Dict{Symbol, Any}, key::Symbol) | |
╎ 1 @Base/dict.jl:281; ht_keyindex | |
1╎ 1 @Base/Base.jl:38; getproperty | |
1╎1 @Base/dict.jl:0; ht_keyindex(h::Dict{UInt32, AbstractPlot}, key::UInt32) | |
2╎2 @Base/sort.jl:549; partition!(v::Vector{Int64}, lo::Int64, hi::Int64, o::Base.Order.Perm{Base.Sort.Float.Right, Vector{Float32}}) | |
1╎1 @Base/sort.jl:568; sort!(v::Vector{Int64}, lo::Int64, hi::Int64, a::Base.Sort.QuickSortAlg, o::Base.Order.Perm{Base.Sort.Float.Right, Vector{Float32}}) | |
╎1 @Base/task.jl:484; (::VSCodeServer.JSONRPC.var"#1#3"{VSCodeServer.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}})() | |
╎ 1 @JSONRPC/src/core.jl:103; macro expansion |
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
# Try animation of particle trajectories | |
tail = 200 | |
num_ptl = 1000 | |
trg = 1:100*tail | |
# size(phase_rs) = [2, 8_000, 20_000] | |
anim_step(tidx, ptl) = GLMakie.Point2f(phase_rs[:, ptl, tidx]) | |
traj_list = Any[] |
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
using Plots | |
using ADIOS2 | |
using Random | |
#using BenchmarkTools | |
sim_name = "pe459_v7" | |
#sim_path = f"/global/cfs/cdirs/m499/rkube/xgc1-runs/tracers-em/{sim_name}" | |
sim_path = "/global/cscratch1/sd/rkube/xgc_runs/tracers-em/$(sim_name)" | |
# Number of particles that we track. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"id": "06beeb51", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"%load_ext autoreload\n", |
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
diff --git a/CMake/FindKokkos.cmake b/CMake/FindKokkos.cmake | |
index 3a62d58c..dd0f0e6a 100644 | |
--- a/CMake/FindKokkos.cmake | |
+++ b/CMake/FindKokkos.cmake | |
@@ -1,18 +1,10 @@ | |
find_package(Kokkos CONFIG) | |
if(Kokkos_FOUND) | |
- if(TARGET kokkos) | |
- # Kokkos' imported target doesn't give us its include path, | |
- # so we add it here. |
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
// in tracer_diag.cpp | |
plasma.for_all_nonadiabatic_species([&](Species<DeviceType>& species){ | |
// This is the syntax to access the Cabana AoSoA | |
// See example code in https://github.com/ECP-copa/Cabana/blob/master/core/unit_test/tstAoSoA.hpp | |
auto phase = Cabana::slice<0>(species.particles); | |
auto tracer = Cabana::slice<2>(species.particles); | |
auto gid = Cabana::slice<3>(species.particles); | |
auto flag = Cabana::slice<4>(species.particles); | |
written_ptls = 0; |
NewerOlder