Skip to content

Remove the clearCurrentTape method #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions ADOL-C/src/tape_handling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,23 +563,15 @@ static void init_lib() {
readConfigFile();
}

static void clearCurrentTape() {
ADOLC_OPENMP_THREAD_NUMBER;
ADOLC_OPENMP_GET_THREAD_NUMBER;
TapeInfos *tmpTapeInfos = new TapeInfos;

ADOLC_CURRENT_TAPE_INFOS.copy(*tmpTapeInfos);
ADOLC_CURRENT_TAPE_INFOS_FALLBACK.copy(*tmpTapeInfos);
delete tmpTapeInfos;
}

/* does things like closing/removing temporary files, ... */
void cleanUp() {
ADOLC_OPENMP_THREAD_NUMBER;
ADOLC_OPENMP_GET_THREAD_NUMBER;

initTapeInfos(&ADOLC_CURRENT_TAPE_INFOS);
initTapeInfos(&ADOLC_CURRENT_TAPE_INFOS_FALLBACK);

TapeInfos **tiIter;
clearCurrentTape();
while (!ADOLC_TAPE_INFOS_BUFFER.empty()) {
tiIter = &ADOLC_TAPE_INFOS_BUFFER.back();
ADOLC_TAPE_INFOS_BUFFER.pop_back();
Expand Down
Loading