System.out.println("Testing WrapVecDoub[], interface1");
WrapVecDoub data = new WrapVecDoub(2*N);
for (i=0;i<N;i++) data.set(i,new Complex(2*i,2*i+1));
for (i=0;i<N;i++)
localflag = localflag || (data.real(i) != 2*i) || (data.imag(i) != 2*i+1);
globalflag = globalflag || localflag;
if (localflag) {
fail("*** WrapVecDoub[], interface1: Failure to write complex, and read with .real() and .imag()");
}