Name: CompactHashRemap
Owner: Los Alamos National Laboratory
Description: Fast mesh remapping algorithm based on hashing techniques
Created: 2015-12-18 22:25:29.0
Updated: 2018-04-10 13:45:00.0
Pushed: 2018-04-10 13:44:58.0
Homepage: null
Size: 504
Language: C
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Fast mesh remapping algorithm based on hashing techniques
/* Copyright 2015-16. Los Alamos National Security, LLC. This material was produced
Gerald Collom XCP-2 gcollom@lanl.gov
Colin Redman XCP-2 credman@lanl.gov
*/To checkout the code:
git clone git@github.com:losalamos/CompactHashRemap
Common commands for code developement
git add
To update from remote repository when local branch has modifications git stash git pull git stash pop
To setup the environment:
module commands – need list module load cmake/3.0.2 //find MPI command
The Nvidia Kepler K40 with a 32-cpu host node is the Darwin node for timing.
salloc -p SAND_16_2:MEM64.0:Accelerator-1:TeslaK40c:10GbE::
Options to cmake for the configure step is
cmake . // in-tree build
cmake
cmake . -DCMAKE_C_COMPILER=bf-clang -DCMAKE_CXX_COMPILER=bf-clang++ // for building with byfl
Build the executables:
make
Clean
make clean
Running the code
cd into the AMR_remap directory
./AMR_remap
i_level_diff and o_level_diff are the range of levels of refinement for input(i) and output(o) ilength and olength are the number of cells within each mesh. If the number of cells is impossible to obtain, a possible number of cells is set instead of the argument. num_rep is the number of times the code is repeated to get more rounded averages. sample: 2 10 2 10 10 sample: 8 50000 9 200000 1
./AMR_remap_openMP 6 1000000 6 1000000 10 -no-brute
An alternate mesh generation is available that can better explore more realistic AMR meshes. To run it add -adapt-meshgen and the input options are the size of the base mesh, the number of levels of refinement and the refinement probability threshold in percent. A blank field shown as 0 is also necessary. The number of repetitions remains in the fifth argument.
Usage – ./AMR_remap_openMP
A nice example for a test case would be:
./AMR_remap_openMP 128 6 20 0 10 -adapt-meshgen -no-brute
cd into the Unstruct_remap directory
./parse_test ./read_test ./write_test ./search_test
each of the above will test the part of the unstructured search that is specified. no arguments are required.