Skip to content

Commit

Permalink
fixup: clean up file example
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Oct 12, 2023
1 parent 93945c6 commit 6cc42de
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions examples/read_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ int main( int argc, char* argv[] )
double G0 = 3.8; // [J/m^2]

// PD horizon
double delta = 3 * 0.1299999999999999;
double dx = 0.1299999999999999;
double delta = 3 * dx;
int halo_width = 1;

// Choose force model type.
Expand All @@ -127,16 +128,8 @@ int main( int argc, char* argv[] )
// Read particles from file.
read_particles( inputs.input_file, *particles );
// Update after reading. Currently requires fixed cell spacing.
double dx = 0.1299999999999999;
particles->updateAfterRead( exec_space(), halo_width, dx );

// Define particle initialization.
auto x = particles->sliceReferencePosition();
auto v = particles->sliceVelocity();
auto f = particles->sliceForce();
auto rho = particles->sliceDensity();
auto nofail = particles->sliceNoFail();

CabanaPD::Prenotch<0> prenotch;

CabanaPD::RegionBoundary planeUpper( -0.5, 0.5, 4.5, 5, -1, 1 );
Expand Down

0 comments on commit 6cc42de

Please sign in to comment.