From: hackbard Date: Fri, 11 Mar 2005 16:56:49 +0000 (+0000) Subject: print all 3 colummns X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb09e4f0560b03f13527384739b75d8d12dd5445;p=physik%2Fnlsop.git print all 3 colummns --- diff --git a/parse_trim_collision.c b/parse_trim_collision.c index 023c8f6..743a711 100644 --- a/parse_trim_collision.c +++ b/parse_trim_collision.c @@ -17,7 +17,7 @@ #include #include -#define MAXION 5000 +#define MAXION 8300 #define MAXZ 233 typedef struct s_z { @@ -80,11 +80,13 @@ int main(int argc,char **argv) { avg2+=Z[i].cell_hits_from_ions; } for(i=0;i232) skipped+=1; else { - Z[z].energy+=en; - Z[z].total_hits+=1; - hit[z]=1; + // energy > displacement energy + if(en>=10) { + Z[z].energy+=en; + Z[z].total_hits+=1; + hit[z]=1; + } } } }