~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/kernel/ode/TimeSlabSolver.cpp

  • Committer: logg
  • Date: 2005-06-16 07:41:55 UTC
  • Revision ID: devnull@localhost-20050616074155-xd23q7rttw048a2a
Tailorized "2005-06-16 02:41:54 by logg"
Added computation of multi-adaptive efficiency index (maximum theoretical
speedup for multi-adaptive solver).

Also added the script meshindex.m to compute an approximate efficiency
index for a given mesh. Turns out that it's a little tricky to create
a mesh with an efficiency index >> 1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
//-----------------------------------------------------------------------------
34
34
TimeSlabSolver::~TimeSlabSolver()
35
35
{
36
 
  dolfin_info("Total number of macro time steps: %d.", num_timeslabs);
 
36
  dolfin_info("Total number of (macro) time steps: %d.", num_timeslabs);
37
37
}
38
38
//-----------------------------------------------------------------------------
39
39
bool TimeSlabSolver::solve()
51
51
    // Check convergenge
52
52
    if ( d1 < tol )
53
53
    {
 
54
      end();
54
55
      num_timeslabs += 1;
55
56
      if ( monitor )
56
57
        dolfin_info("Time slab system of size %d converged in %d iterations.", size(), iter + 1);
68
69
    d0 = d1;
69
70
  }
70
71
 
71
 
  end();
72
72
  dolfin_warning("Time slab system did not converge, solution stopped.");
73
73
  return false;
74
74
}