0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ADDA > iterative.c > Checkpoint systems to save the current state of the iterative solver > vectors: xvec, rvec, pvec (Avecbuffer is _not_ saved)

Last updated at Posted at 2016-11-27
My_Environment
Ubuntu 14.04 LTS Japanese Remix
on VMWare Fusion v8.5.2 (4635224)
on OS X El Captian v10.11.4

GNU bash, version 4.3.11(1)-release

gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 
(also for g++)
ADDA v.1.3b6

This article is related to ADDA (light scattering simulator based on the discrete dipole approximation).

In iterative.c, I found the following comments:

/* Checkpoint systems saves the current state of the iterative solver to the file. By default (for every iterative

  • solver) a number of scalars and vectors are saved. The scalars include, among others, inprodR. **There are 3 default
  • vectors: xvec, rvec, pvec (Avecbuffer is not saved)**. If the iterative solver requires any other scalars or vectors
  • to describe its state, this information should be specified in structure arrays 'scalars' and 'vectors'.
    */

The Checkpoint systems are prepared with functions named as SaveIterChpoint() and LoadIterChpoint().

If my understanding is correct, the Checkpoint systems are used to stop/resume the calculation. Therefore I think that SaveIterChpoint() stores the coefficients of system of linear equations somewhere as files.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?