Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
Signed-off-by: Vaishnavi Bhandari <vaishnavibhandari.128@gmail.com>
  • Loading branch information
peach280 committed Jan 27, 2025
1 parent e22ba14 commit 645f5e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 13 additions & 0 deletions avogadro/core/elements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ static std::vector<std::string> CustomElementNames;
// Match carbon's radii
static std::vector<double> CustomElementCovalentRadii;
static std::vector<double> CustomElementVDWRadii;

inline std::string encodeCustomElement(unsigned char atomicNumber)
{
std::string result;
Expand Down Expand Up @@ -126,7 +127,19 @@ void setCustomElementVDWRadius(unsigned char atomicNumber, double radius)
}
}
} // end anon namespace
void setCustomElementCovalentRadius(unsigned char atomicNumber, double radius)
{
if (isCustomElement(atomicNumber)) {
CustomElementCovalentRadii[atomicNumber - CustomElementMin] = radius;
}
}

void setCustomElementVDWRadius(unsigned char atomicNumber, double radius)
{
if (isCustomElement(atomicNumber)) {
CustomElementVDWRadii[atomicNumber - CustomElementMin] = radius;
}
}
unsigned char Elements::elementCount()
{
return element_count;
Expand Down
1 change: 0 additions & 1 deletion tests/qtgui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ if(PYTHON_EXECUTABLE AND AVOGADRO_DATA)
# InputGeneratorWidget
)
endif()
# link_directories(/usr/lib)

# Build up the source file names.
set(testSrcs "")
Expand Down

0 comments on commit 645f5e8

Please sign in to comment.