remove dead code

This commit is contained in:
Axel Kohlmeyer
2023-01-27 20:48:32 -05:00
parent 03c8b0ff89
commit 7e6333fdd1
3 changed files with 4 additions and 6 deletions

View File

@ -136,7 +136,7 @@ PairReaxFF::~PairReaxFF()
Delete_List(api->lists+THREE_BODIES);
Delete_List(api->lists+FAR_NBRS);
DeAllocate_Workspace(api->control, api->workspace);
DeAllocate_Workspace(api->workspace);
DeAllocate_System(api->system);
}

View File

@ -62,7 +62,6 @@ namespace ReaxFF {
void DeAllocate_System(reax_system *system)
{
auto error = system->error_ptr;
auto memory = system->mem_ptr;
// deallocate the atom list
@ -78,13 +77,12 @@ namespace ReaxFF {
}
/************* workspace *************/
void DeAllocate_Workspace(control_params *control, storage *workspace)
void DeAllocate_Workspace(storage *workspace)
{
if (!workspace->allocated)
return;
workspace->allocated = 0;
auto error = control->error_ptr;
/* bond order storage */
sfree(workspace->total_bond_order);
@ -245,7 +243,7 @@ namespace ReaxFF {
system->my_atoms = (reax_atom *)::realloc(system->my_atoms,
system->total_cap*sizeof(reax_atom));
/* workspace */
DeAllocate_Workspace(control, workspace);
DeAllocate_Workspace(workspace);
Allocate_Workspace(control, workspace, system->total_cap);
}

View File

@ -41,7 +41,7 @@ struct API {
extern void Allocate_Workspace(control_params *, storage *, int);
extern void DeAllocate_System(reax_system *);
extern void DeAllocate_Workspace(control_params *, storage *);
extern void DeAllocate_Workspace(storage *);
extern void PreAllocate_Space(reax_system *, storage *);
extern void ReAllocate(reax_system *, control_params *, simulation_data *, storage *, reax_list **);