> For the complete documentation index, see [llms.txt](https://antoinearnoud.gitbook.io/fortran/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://antoinearnoud.gitbook.io/fortran/chapter7.md).

# Appendix: Clusters

To use Yale cluster (Grace) for compiling with Fortran you don't need to load anything if you are using gfortran compiler. If you want to use Intel compiler you need to load it with

```bash
module load Langs/Intel/...
```

where `...` has to be replaced by the version of intel to use.

Yale Cluster (Grace) uses SLURM to manage the job submissions. The command to submit a job is

```bash
sbatch name_of_file.sh
```

The file must be a bash file (see next chapter for a *very* short introduction to Bash).

To verify the jobs that have been submitted, on uses the following command

```bash
squeue -u id_of_user
```

The head of the script file (sh file) must be

`#!/bin/bash`

One can add some option (before ANY other text):

```bash
#SBATCH --job-name=myjob
#SBATCH --partition=nameofthepartition
#SBATCH --time=80:00:00
#SBATCH --output=job_output.txt
```

Time is in HH:MM:SS. To add days: DD-HH:MM:SS.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://antoinearnoud.gitbook.io/fortran/chapter7.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
