// test_nav1.java import java.io.*; public class test_nav1 { nav1 N = new nav1(); public test_nav1() // constructor { System.out.println("test_nav1 running"); N.test(); write_bound(); System.out.println("test_nav1 finished"); } void write_bound() { try { FileWriter fout = new FileWriter("nav1_boundary.dat"); BufferedWriter fileout = new BufferedWriter(fout); System.out.println("writing nav1_boundary.dat"); double xmin = 0.0; double xmax = 1.0; double ymin = 0.0; double ymax = 1.0; double zmin = 0.0; double zmax = 1.0; double tmin = 0.0; double tmax = 1.0; double x, y, z, t; double hx, hy, hz, ht; int nx = 2; // just boundary int ny = 2; int nz = 2; int nt = 2; hx = (xmax-xmin)/(nx-1); hy = (ymax-ymin)/(ny-1); hz = (zmax-zmin)/(nz-1); ht = (tmax-tmin)/(nt-1); for(int i=0; i