Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /tests/DATm-bugs/tests/C9/observ.diderot
ViewVC logotype

View of /tests/DATm-bugs/tests/C9/observ.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5141 - (download) (annotate)
Thu Jul 20 17:07:50 2017 UTC (2 years, 1 month ago) by cchiw
File size: 917 byte(s)
move test programs
field#4(3)[3]F0 = c4hexic⊛  image("rst/data/inputfile0.nrrd");
field#4(3)[3]F1 = c4hexic⊛  image("rst/data/inputfile1.nrrd");
tensor [3]F2 = [-1, 2, -1];
input real scale = 1;
field#3(3)[]G = ∇•(modulate(((F0)-(F1)),(F2)));
int length =7;
strand f(int i) {

	output tensor [] out = 0.0;
	    update {

		tensor [3] pos=[0,0,0];
		if(i==0){
			pos = ([-0.05, 0.28, -0.38]);
		}
		else if(i==1){
			pos = ([-0.05, 0.28, -0.38]);
		}
		else if(i==2){
			pos = ([-0.32, 0.12, 0.29]);
		}
		else if(i==3){
			pos = ([-0.23, 0.12, -0.28]);
		}
		else if(i==4){
			pos = ([-0.19, 0.02, -0.31]);
		}
		else if(i==5){
			pos = ([0.36, 0.37, 0.34]);
		}
		else if(i==6){
			pos = ([-0.24, -0.37, 0.08]);
		}
		else if(i==7){
			pos = ([-0.21, -0.03, -0.19]);
		}

	if((inside(pos,F0)) && (inside(pos,F1)) && true){
			out = (G)(pos);
	}
	 else{out = 7.2;}
        stabilize;
    }
}
initially [ f(i) | i in 0..length];

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0