~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/trilinoscouplings/examples/epetraext/EpetraExt_Isorropia_LPTrans_Ex.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
  // "Zoltan" and setting the appropriate values.
64
64
  // (See Zoltan documentation for other valid parameters...)
65
65
 
66
 
  Teuchos::ParameterList& sublist = paramlist.sublist("Zoltan");
67
 
  sublist.set("LB_METHOD", "HYPERGRAPH");
 
66
  Teuchos::ParameterList& sublist = paramlist.sublist("ZOLTAN");  
 
67
  paramlist.set("PARTITIONING METHOD", "HYPERGRAPH");
 
68
  sublist.set("DEBUG_LEVEL", "1");
68
69
 
69
70
#else
70
71
  //If Zoltan is not available, we don't need to set any parameters.
101
102
 
102
103
  // Create the new linear problem and perform the balanced partitioning.
103
104
  // NOTE:  The balanced linear system will be in tProblem after fwd() is called.
104
 
  Teuchos::RCP<Epetra_LinearProblem> tProblem = Teuchos::rcp( &((*LPTrans)( problem )) );
 
105
  //        It is not necessary for the RCP to manage the transformed problem.
 
106
  Teuchos::RCP<Epetra_LinearProblem> tProblem = Teuchos::rcp( &((*LPTrans)( problem )), false );
105
107
  LPTrans->fwd();
106
108
 
107
109
  int graphrows1 = crsmatrix->NumMyRows();
116
118
 
117
119
    std::cout << "proc " << p << ": input matrix local rows: " << graphrows1
118
120
       << ", local NNZ: " << graphnnz1 << std::endl;
119
 
  }
120
 
 
121
 
  for(p=0; p<numProcs; ++p) {
122
 
    MPI_Barrier(MPI_COMM_WORLD);
123
 
 
124
 
    if (p != localProc) continue;
125
 
 
126
121
    std::cout << "proc " << p << ": balanced matrix local rows: "
127
122
       << bal_graph_rows << ", local NNZ: " << bal_graph_nnz << std::endl;
128
123
  }
129
124
 
130
 
  if (localProc == 0) {
131
 
    std::cout << std::endl;
132
 
  }
133
 
 
134
125
  MPI_Finalize();
135
126
 
136
127
#else