Difference between revisions of "Rupture Variation Generator v5.4.2 code changes"

From SCECpedia
Jump to navigationJump to search
Line 2: Line 2:
  
 
In this document, $ROOT_DIR is taken to be the RupGen-api-5.4.2 directory.
 
In this document, $ROOT_DIR is taken to be the RupGen-api-5.4.2 directory.
 +
 +
To start, create src, include, lib, and bin directories inside $ROOT_DIR .
  
 
== structure.h ==
 
== structure.h ==
Line 15: Line 17:
 
#endif
 
#endif
 
</pre></li>
 
</pre></li>
 +
<li>Create a symlink from $ROOT_DIR/GenRandV5.0/structure.h which points to this file.</li>
 
</ol>
 
</ol>

Revision as of 03:54, 2 October 2019

This page documents the code changes required to turn the stand-alone version, genslip-v5.4.2, into an API callable by the CyberShake post-processing. The changes are indexed by file.

In this document, $ROOT_DIR is taken to be the RupGen-api-5.4.2 directory.

To start, create src, include, lib, and bin directories inside $ROOT_DIR .

structure.h

  1. Copy into $ROOT_DIR/include .
  2. At the top of the file, add:
    #ifndef STRUCT_H
    #define STRUCT_H
    
  3. At the end of the file, add:
    #endif
    
  4. Create a symlink from $ROOT_DIR/GenRandV5.0/structure.h which points to this file.