next up previous contents
Next: About this document ... Up: Adding a module Previous: Formats   Contents

Adding a Step

Adding a new step is not intended to be necessary. The only thing that needs to be added are modules (methods) in pre-defined steps. However we will explain what you will have to change if you want to add a new step.

In file readinput.h:

  1. you will have to add a const for the new step which is later stored in the process array;
  2. also a struct has to be made to store the variables of this new step. (method selector, output file name, window sizes, etc.);
  3. the prototype of the function readinput should be augmented with this new struct.

In the file readinput.c:

  1. function readinput augment with new struct;
  2. (only)process card, define new keyword for this step;
  3. add reading of parameters into defined inputstruct by new keywords.

In file ioroutines.c: (only minor adding)

  1. routine: doinitwrite: add new step
  2. routine: initwrite: process control
  3. routine: updateprocesscontrol: check for string
  4. routine: checkprocesscontrol: check for string
  5. routine: fillcheckprocesscontrol: check for string
  6. routine: fillprocessed: check for string

In file processor.c:

  1. add definition of new struct,
  2. readinput augment with new struct,
  3. add in big switch what to do if new step is requested.

General:


next up previous contents
Next: About this document ... Up: Adding a module Previous: Formats   Contents
Leijen 2009-04-14