~ubuntu-branches/ubuntu/saucy/rheolef/saucy

« back to all changes in this revision

Viewing changes to skit/ptst2/asr_exchange_tst.cc

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Saramito
  • Date: 2011-03-23 11:14:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110323111426-cjvhey7lxt6077ty
Tags: 5.93-1
* New upstream release (minor changes):
  - some extra warning message deleted in heap_allocator
  - graphic output with mayavi2 fixed
  - add doc refman in .info and .pdf format

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
using namespace rheolef;
29
29
int main(int argc, char**argv)
30
30
{
31
 
    environment parallel(argc, argv);
 
31
    environment distributed(argc, argv);
32
32
    size_t n = (argc < 2) ? 5 : atoi(argv[1]);
33
33
    asr<Float> a(n,n);
34
34
    size_t first = a.row_first_index();
35
35
    size_t last  = a.row_last_index();
36
36
    if (a.comm().rank() == 0) {
37
37
        for (size_t i = 0; i < n; i++) {
38
 
            a.entry (i, i) = 1000+i+0.5;
 
38
            a.dis_entry (i, i) = 1000+i+0.5;
39
39
        }
40
40
    }
41
 
    a.assembly();
42
 
    pcout << a.par_nrow() << " " 
43
 
          << a.par_ncol() << " " 
44
 
          << a.par_nnz()  << endl
45
 
          << a;
 
41
    a.dis_entry_assembly();
 
42
    dcout << a;
46
43
}
47
44
#endif // _RHEOLEF_HAVE_MPI