Changeset 230 for trunk/matml/src/castabox
- Timestamp:
- 03/02/06 22:48:58 (3 years ago)
- Location:
- trunk/matml/src/castabox
- Files:
-
- 2 modified
-
castabox.c (modified) (8 diffs)
-
makefile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/matml/src/castabox/castabox.c
r191 r230 21 21 22 22 #include <stdlib.h> /* For atoi() */ 23 #include <string.h> 23 24 /* This also #includes petscda.h, petscvec.h and several other dependencies. */ 24 25 #include <illuminator.h> … … 272 273 int ts=0, plots=6, keepon=1, ierr; 273 274 char outstring [101]; 275 ISurface Surf; 276 IDisplay Disp; 277 278 DPRINTF ("Starting the Geomview display using Illuminator.\n",0); 279 ierr = SurfCreate (&Surf); CHKERRQ (ierr); 280 ierr = GeomviewBegin (PETSC_COMM_WORLD, &Disp); CHKERRQ (ierr); 274 281 275 282 DPRINTF ("Calculating maximum stable explicit timestep size.\n",0); … … 351 358 { 0., p.width_x, 0., p.width_y, 0., p.width_z }; 352 359 353 ierr = DATriangulate ( box_da,global, TEMPERATURE, minmax,360 ierr = DATriangulate (Surf, box_da,global, TEMPERATURE, minmax, 354 361 plots=newplots, plot_temps, plot_colors, 355 PETSC_ NULL, PETSC_NULL, PETSC_NULL);362 PETSC_FALSE, PETSC_FALSE, PETSC_FALSE); 356 363 CHKERRQ (ierr); 357 364 /* Work-around for illuminator non-periodic bug */ … … 360 367 minmax[5] = p.width_z * (p.grid_z-1) / p.grid_z; 361 368 ierr = GeomviewDisplayTriangulation 362 (PETSC_COMM_WORLD, minmax, "Temperature", PETSC_FALSE); CHKERRQ(ierr); 369 (PETSC_COMM_WORLD, Surf, Disp, minmax, "Temperature", 370 PETSC_FALSE); CHKERRQ(ierr); 363 371 } 364 372 else … … 424 432 { 0., p.width_x, 0., p.width_y, 0., p.width_z }; 425 433 426 ierr = DATriangulate ( box_da, global, TEMPERATURE, minmax,427 plots, plot_temps,plot_colors,428 PETSC_ NULL, PETSC_NULL, PETSC_NULL);434 ierr = DATriangulate (Surf, box_da, global, TEMPERATURE, 435 minmax, plots,plot_temps,plot_colors, 436 PETSC_FALSE,PETSC_FALSE,PETSC_FALSE); 429 437 CHKERRQ (ierr); 430 438 /* Work-around for illuminator non-periodic bug */ … … 433 441 minmax[5] = p.width_z * (p.grid_z-1) / p.grid_z; 434 442 ierr = GeomviewDisplayTriangulation 435 (PETSC_COMM_WORLD, minmax, "Temperature", PETSC_FALSE); CHKERRQ(ierr); 443 (PETSC_COMM_WORLD, Surf, Disp, minmax, "Temperature", 444 PETSC_FALSE); CHKERRQ (ierr); 445 ierr = SurfClear (Surf); CHKERRQ (ierr); 436 446 } 437 447 } … … 451 461 } 452 462 463 ierr = GeomviewEnd (PETSC_COMM_WORLD, Disp); CHKERRQ (ierr); 453 464 return 0; 454 465 } … … 593 604 } 594 605 595 DPRINTF ("Starting the Geomview display using Illuminator.\n",0);596 ierr = GeomviewBegin (PETSC_COMM_WORLD); CHKERRQ (ierr);597 598 606 DPRINTF ("Starting the timestep loop...\n",0); 599 607 ierr = timestep_loop (box_da, p); 600 608 601 609 DPRINTF ("Shutting down.\n",0); 602 ierr = GeomviewEnd (PETSC_COMM_WORLD); CHKERRQ (ierr);603 610 ierr = DADestroy (box_da); CHKERRQ (ierr); 604 611 ierr = PetscFinalize (); CHKERRQ (ierr); -
trunk/matml/src/castabox/makefile
r189 r230 9 9 10 10 castabox: castabox.c 11 $(CC) $^ -o $@ $(PETSC_DM_LIB ) -lluminate $(PETSC_INCLUDE) \12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include#-DDEBUG11 $(CC) $^ -o $@ $(PETSC_DM_LIB_BASIC) -lluminate $(PETSC_INCLUDE) \ 12 `pkg-config --cflags gtk+-2.0` #-DDEBUG 13 13 14 14 clean: