← Documentation
ADS-IDAC Engine 5.0.0
Server.h File Reference

MPI server (rank 0): dispatches DET sequences to worker clients. More...

#include <mpi.h>
#include <memory>
#include <mutex>
#include <queue>
#include <vector>
#include <map>
#include <unordered_map>
#include <fstream>
#include "ParallelUtilities.h"
#include "ParallelGlobal.h"
#include <filesystem>
Include dependency graph for Server.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TreeState
 Shared state between MPI server loop and visualization HTTP server. More...
 
class  Server
 MPI server that manages the DET task queue and client dispatch. More...
 
struct  Server::RestartTask
 A metadata-only restart task: the data stays on the source client. More...
 

Typedefs

using PU = ParallelUtilities
 

Detailed Description

MPI server (rank 0): dispatches DET sequences to worker clients.

The server runs on MPI rank 0 and does not execute RELAP5 simulations itself. It handles metadata only: restart data stays on the client that produced it and moves client to client. The server keeps a queue of metadata-only restart tasks and assigns them to free clients round-robin. Clients announce new branch points with server_branch_meta (local id + branch count), report a finished sequence with server_done_with_report (a SequenceReport), and confirm a finished peer transfer with server_send_complete. Restart blobs reach the server only while it gathers a checkpoint or dispatches the pending tasks of a resumed one.

Definition in file Server.h.

Typedef Documentation

◆ PU

using PU = ParallelUtilities

Definition at line 53 of file Server.h.