User Tools

Site Tools


pkdgrav2

Pkdgrav2

Installation

  • Download, unpack, compile as

# -*- mode: bash; -*-
$ cd $pkdgrav_dir
$ autoconf
$ ./configure
$ make (null|pthread|mpi)

  • Build Targets:
    • “null” - single CPU version
    • “mpi” - MPI (>1 node)
    • “pthreads” - Threaded (>1 thread, =1 node)

First Run

Lessons in C

  • Print double variable “acc”

# -*- mode: c; -*-
sprintf("%5.2f\n", acc)

Other Lessons

Zero Acceleration

If you get this guy:

KickClose: Avg Wallclock 0.000000, Max Wallclock 0.000000
SFTEST Call msrStarFrom:                 0.95  1 1
    Adjust, iRung: 1
pkdgrav2_null: pkd.c:2716: pkdAccelStep: Assertion `acc > 0' failed.
Caught signal 6
Frame  0: pkdgrav2_null() [0x408af2]
Frame  1: /lib/x86_64-linux-gnu/libc.so.6(+0x324f0) [0x7f9e8dc194f0]
Frame  2: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f9e8dc19475]
Frame  3: /lib/x86_64-linux-gnu/libc.so.6(abort+0x180) [0x7f9e8dc1c6f0]
Frame  4: /lib/x86_64-linux-gnu/libc.so.6(__assert_fail+0xf1) [0x7f9e8dc12621]
Frame  5: pkdgrav2_null() [0x4442dc]
Frame  6: pkdgrav2_null() [0x421280]
Frame  7: pkdgrav2_null() [0x4153f8]
Frame  8: pkdgrav2_null() [0x41baaf]
Frame  9: pkdgrav2_null() [0x41b982]
Frame 10: pkdgrav2_null() [0x402485]
Frame 11: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f9e8dc05ead]
Frame 12: pkdgrav2_null() [0x403269]

the timestep is too large! Adjust dDelta to a smaller value.

pkdgrav2.txt · Last modified: 2013/07/10 07:02 (external edit)