Skip to content
Snippets Groups Projects
Commit dc73079b authored by Saad Jbabdi's avatar Saad Jbabdi
Browse files

small bug with rubbish file fixed

parent 4de16ffa
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ namespace TRACT{ ...@@ -95,7 +95,7 @@ namespace TRACT{
int partlength=0; int partlength=0;
bool rubbish_passed=false; bool rubbish_passed=false;
bool stop_flag=false; bool stop_flag=false;
bool has_goneout=false; //bool has_goneout=false;
//NB - this only goes in one direction!! //NB - this only goes in one direction!!
for(unsigned int pf=0;pf<m_passed_flags.size();pf++) { for(unsigned int pf=0;pf<m_passed_flags.size();pf++) {
m_passed_flags[pf]=false; /// only keep it if this streamline went through all the masks m_passed_flags[pf]=false; /// only keep it if this streamline went through all the masks
...@@ -146,10 +146,7 @@ namespace TRACT{ ...@@ -146,10 +146,7 @@ namespace TRACT{
if(opts.rubbishfile.value()!=""){ if(opts.rubbishfile.value()!=""){
if(m_rubbish(x_s,y_s,z_s)==0){ if(m_rubbish(x_s,y_s,z_s)!=0){
has_goneout = true;
}
if(m_rubbish(x_s,y_s,z_s)!=0 && has_goneout){
rubbish_passed=true; rubbish_passed=true;
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment