Fetching contributors…
Cannot retrieve contributors at this time
69 lines (58 sloc) 2.13 KB

Nek5000 + libCEED examples


Nek5000 must be installed to run these examples. It is assumed to exist at ../../../Nek5000 (a sibling to the libCEED directory) or at a path defined in the environment variable NEK5K_DIR. For example, you could set

    export NEK5K_DIR=/scratch/Nek5000

if that is where it is located.

Generate meshes (boxes)

You can generate box geometries using script:

  ./ log_2(<min_elem>) log_2(<max_elem>)."

For example:

  ./ 2 4

will generate three boxes with 4(=2^2), 8 and 16(=2^4) elements inside the boxes/b* directories.

The script depends on the Nek5000 tools: genbox, genmap, and reatore2. They can be built using

   ( cd $NEK5K_DIR/tools && ./maketools genbox genmap reatore2 )

See also the Nek5000 documentation.

Building the Nek5000 examples

You can build the Nek5000 libCEED examples by invoking script.


Running Nek5000 examples

You can run the Nek5000 libCEED examples by invoking script. The syntax is:

  ./ -c <ceed_backend> -e <example_name> \
                                            -n <mpi_ranks> -b <box_geometry>

The different options that can be used for the script are listed below:

   -h|-help     Print this usage information and exit
   -c|-ceed     Ceed backend to be used for the run (optional, default: /cpu/self)
   -e|-example  Example name (optional, default: bp1)
   -n|-np       Specify number of MPI ranks for the run (optional, default: 4)
   -b|-box      Specify the box geometry to be found in ./boxes/ directory (Mandatory)

The only mandatory argument is -b or -box which sets the box geometry to be used. This geometry should be found in ./boxes directory.

For example, you can run bp1 as follows:

  ./ -ceed /cpu/self -e bp1 -n 4 -b 3

which is the same as running:

  ./ -b 3