ClimFlows / CFMultigrid.jl

A geometric multigrid toolbox to solve elliptic problems
MIT License
0 stars 0 forks source link

Remarks #5

Open dubosipsl opened 2 months ago

dubosipsl commented 2 months ago

@pvthinker I have the following remarks:

pvthinker commented 2 months ago

@dubosipsl Thank you Thomas for the feed-backs. Before including your propositions, let me comment/answer

  1. [LoopManagers] : sure!
  2. [using] : yes!
  3. [Param] : ahah, some of the fields should clearly be immutable = the ones pertaining to the structure or the problem (e.g. location, operator, nx, ny, nz etc) but other mutable = the ones pertaining to optimizing (tol, maxite, cycle, omega, npre, npost). In particular, omega should be optimized for each problem. I've to commit this little tuning function, very useful as it impacts quite a lot the convergence rate.
  4. [location] : yes in principle but in practice I only see an ugly solution: the location should then be passed as an argument in the restriction/prolongation call. This would make the calls uglier. I'm sure you've an elegant solution.
  5. [Gmg.data] : I don't understand this remark. I like to have all the multigrid in one struct "Gmg"
  6. [leaving data.x to the user] and data.b also (only for the 1st level). Yes, sure! it was already on my todo list. I see it as an another API to solve!().
  7. [type Level] : good point, so far nothing. I'll probably remove it.