c - PETSC_VIEWER_DRAW_WORLD shows nothing -


i started petsc , i'm trying plot matrix using matview. code like:

 matcreateseqaijwitharrays(petsc_comm_world, nodes, nodes, rows, cols, values, net); //i want visualize "net"   //visualization     if(display >= 1){         petscprintf(petsc_comm_world, "csr structure created.\n");         matview(*net,petsc_viewer_draw_world);     } 

when use matview way:

matview(*net,petsc_viewer_stdout_world); 

i can see list rows. when change to

matview(*net,petsc_viewer_draw_world); 

nothing happens.

i can't see net structure, not list.

i tried run examples don't work @ all. also, petsc documentation makes things worse. can me? don't want see list of rows, matrix (graphically).


more context comments:

  • x windows functioning -- able confirm gvim, xlogo, xeyes, etc.
  • library has been rebuilt using --with-x option in configure. still nothing appears.

try using "-draw_pause -1" argument petsc program, if you're not doing yet.

-draw_pause - sets time (in seconds) program pauses after petscdrawpause() has been called (0 default, -1 implies until user input).


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -