
The Sample Code Repository, environment variable $SAMPLES_HOME on each HPC system, contains helpful examples of frequently‑used procedures, routines, scripts, codes, and best practices. A categorized index of the supported samples is shown below and is also included in the file $SAMPLES_HOME/INDEX.txt. Each self‑contained sample resides in a subdirectory whose name corresponds to the index entry.
| Sample Subdirectory | Description |
|---|---|
| Applications | |
| Abaqus_Example | Basic batch script and input deck for an Abaqus job |
| AVUS_Example | Sample input files and job script for the AVUS application. |
| CTH_Example | Sample scripts for submitting CTH batch jobs |
| Fluent_Example | Sample input files and job script for the Fluent application |
| Gamess_Example | Sample input files and job script for the Gamess application |
| GASP_Example | Code and instructions for executing a sample test case from the GASP distribution on one processor |
| LS_DYNA_Example | Sample input file and job script for the LS_DYNA application |
| STAR_CD_Example | Sample input file and job script for the STAR_CD application |
| TBMD_Example | Instructions and files for a small test run of the CHSSI version of TBMD |
| VASP_Example | Sample input files and job script for the VASP application |
| Batch Environment | |
| BatchScript_Example | Simple PBS batch script showing all required options |
| Data Management | |
| MPSCP_to_DMS | Instructions and sample scripts on using the mpscp utility for transferring files to/from DMS |
| OST_Stripes | Instructions and examples for striping large files on the Lustre file systems. |
| Sync_Dirs_With_DMS | Sync an HPC directory with DMS. Copy files and directories that are new or have changed |
| Libraries | |
| PETSC_Example | Example of compiling a code using the PETSC libraries |
| Parallel Environment | |
| SHMEM_Example | Instructions and sample code for compiling and running a simple SHMEM application |
| Programming Environment | |
| Endian_Conversion | Using the assign utility to convert between big-endian and little-endian data formats |
| MPI_Totalview | Simple Fortran program, compile command, and job script to demonstrate using the Totalview debugger |
| Miscellaneous | |
| Floating_Point_Exception | Managing Floating Point Exceptions within a Fortran program |
| Module_Swap_Example | Batch script demonstrating how to swap one module version for another |
Last update: January 25, 2010
You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only. By using this IS (which includes any device attached to this IS), you consent to the following conditions: * The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations. * At any time, the USG may inspect and seize data stored on this IS. * Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG- authorized purpose. * This IS includes security measures (e.g., authentication and access controls) to protect USG interests--not for your personal benefit or privacy. * Not withstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential.