Skip to content

Commit

Permalink
Add check on grid->nv to ensure the grid has been allocated.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wohlbier committed Mar 17, 2016
1 parent 217768b commit 7caec3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/interface_deck_2D_decomp/head/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ PLAT = Linux
# path to installed compiler wrapper
#VPIC = /home/wohlbier/VPIC/head/build_intel_debug/bin/vpic
#VPIC = /home/wohlbier/VPIC/head/build_intel_relwithdebinfo_sse/bin/vpic
#VPIC = /home/wohlbier/VPIC/head/build_gcc_debug/bin/vpic
VPIC = /home/wohlbier/VPIC/head/build_gcc_relwithdebinfo_sse/bin/vpic
VPIC = /home/wohlbier/VPIC/head/build_gcc_debug/bin/vpic
#VPIC = /home/wohlbier/VPIC/head/build_gcc_relwithdebinfo_sse/bin/vpic

# name of input deck file
DECK = interface_deck_2D_decomp.cc
Expand Down
1 change: 1 addition & 0 deletions src/species_advance/species_advance.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ species( const char * name,

if( !len ) ERROR(( "Cannot create a nameless species" ));
if( !g ) ERROR(( "NULL grid" ));
if( g->nv == 0) ERROR(( "Allocate grid before defining species." ));
if( max_local_np<1 ) max_local_np = 1;
if( max_local_nm<1 ) max_local_nm = 1;

Expand Down

0 comments on commit 7caec3a

Please sign in to comment.