---
name: "sc_R12IntsAcc_MemoryGrp"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_R12IntsAcc_MemoryGrp"
---

# sc\_R12IntsAcc\_MemoryGrp(3)

## NAME

sc::R12IntsAcc\_MemoryGrp

## SYNOPSIS

Inherits **sc::R12IntsAcc**.

### Public Member Functions

**R12IntsAcc\_MemoryGrp** (**Ref**\< **MemoryGrp** \> &, int **num\_te\_types**, int **ni**, int **nj**, int **nx**, int **ny**)\
 **R12IntsAcc\_MemoryGrp** (**StateIn** &)\
 void **save\_data\_state** (**StateOut** &)\
 Save the base classes (with save\_data\_state) and the members in the same order that the **StateIn** CTOR initializes them.  void **store\_memorygrp** (**Ref**\< **MemoryGrp** \> &mem, int **ni**, const size\_t blksize)\
 Stores all pair block of integrals held in mem mem must be the same as mem\_ used to construct this This is a collective operation.  void **store\_pair\_block** (int i, int j, double \*ints)\
 Stores an ij pair block of integrals (assumes the block resides locally)  void **deactivate** ()\
 Done reading content - call set\_localsize(0) on the associated **MemoryGrp** This is a collective operation.  double \* **retrieve\_pair\_block** (int i, int j, **tbint\_type** oper\_type)\
 Retrieves an ij pair block of integrals.  void **release\_pair\_block** (int i, int j, **tbint\_type** oper\_type)\
 Releases an ij pair block of integrals (if needed)  bool **is\_local** (int i, int j) const\
 Is this block stored locally?  bool **is\_avail** (int i, int j) const\
 In this implementation all blocks are globally available.  bool **has\_access** (int proc) const\
 Does this task have access to all the integrals?  bool **can\_restart** () const\
 Cannot restart MemoryGrp-based accumulator.  int **ij\_index** (int i, int j) const\
 int **ij\_proc** (int i, int j) const\

### Additional Inherited Members

## Member Function Documentation

### bool sc::R12IntsAcc\_MemoryGrp::can\_restart () const` [inline]`, ` [virtual]`

Cannot restart MemoryGrp-based accumulator.

Implements **sc::R12IntsAcc**.

### void sc::R12IntsAcc\_MemoryGrp::deactivate ()` [virtual]`

Done reading content - call set\_localsize(0) on the associated **MemoryGrp** This is a collective operation. This accumulator cannot be activated again.

Reimplemented from **sc::R12IntsAcc**.

### bool sc::R12IntsAcc\_MemoryGrp::has\_access (int proc) const` [inline]`, ` [virtual]`

Does this task have access to all the integrals?

Implements **sc::R12IntsAcc**.

### bool sc::R12IntsAcc\_MemoryGrp::is\_avail (int i, int j) const` [inline]`, ` [virtual]`

In this implementation all blocks are globally available.

Implements **sc::R12IntsAcc**.

### bool sc::R12IntsAcc\_MemoryGrp::is\_local (int i, int j) const` [inline]`, ` [virtual]`

Is this block stored locally?

Implements **sc::R12IntsAcc**.

### void sc::R12IntsAcc\_MemoryGrp::release\_pair\_block (int i, int j, tbint\_type oper\_type)` [virtual]`

Releases an ij pair block of integrals (if needed)

Implements **sc::R12IntsAcc**.

### double \* sc::R12IntsAcc\_MemoryGrp::retrieve\_pair\_block (int i, int j, tbint\_type oper\_type)` [virtual]`

Retrieves an ij pair block of integrals.

Implements **sc::R12IntsAcc**.

### void sc::R12IntsAcc\_MemoryGrp::save\_data\_state (StateOut &)` [virtual]`

Save the base classes (with save\_data\_state) and the members in the same order that the **StateIn** CTOR initializes them. This must be implemented by the derived class if the class has data.

Reimplemented from **sc::R12IntsAcc**.

### void sc::R12IntsAcc\_MemoryGrp::store\_memorygrp (Ref\< MemoryGrp \> & mem, int ni, const size\_t blksize)` [virtual]`

Stores all pair block of integrals held in mem mem must be the same as mem\_ used to construct this This is a collective operation. See documentation for **R12IntsAcc::store\_memorygrp()** for more info.

Implements **sc::R12IntsAcc**.

### void sc::R12IntsAcc\_MemoryGrp::store\_pair\_block (int i, int j, double \* ints)` [virtual]`

Stores an ij pair block of integrals (assumes the block resides locally)

Implements **sc::R12IntsAcc**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
