Skip to content
Merged
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
10 changes: 8 additions & 2 deletions source/module_esolver/esolver_dp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ namespace ModuleESolver
}
}
#else
ModuleBase::WARNING_QUIT("DP_pot", "Please recompile with -D__DPMD");
ModuleBase::WARNING_QUIT("ESolver_DP", "Please recompile with -D__DPMD");
#endif
ModuleBase::timer::tick("ESolver_DP", "Run");
}
Expand Down Expand Up @@ -197,13 +197,19 @@ namespace ModuleESolver

for (int it = 0; it < ucell.ntype; ++it)
{
bool consistent = false;
for (int it2 = 0; it2 < ntype_dp; ++it2)
{
if (ucell.atom_label[it] == label[it2])
{
dp_type[it] = it2;
consistent = true;
}
}
if (!consistent)
{
ModuleBase::WARNING_QUIT("ESolver_DP", "Unsupported atom types for the DP model");
}
}
delete[] label;
}
Expand All @@ -219,7 +225,7 @@ namespace ModuleESolver

if (!ok)
{
ModuleBase::WARNING_QUIT("type_map", "can not find the DP model");
ModuleBase::WARNING_QUIT("ESolver_DP", "can not find the DP model");
}
return find_type;
}
Expand Down