Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions KEMField/Source/Applications/Test/TestAnisotropicPoisson.cc
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ int main(int argc, char** argv)

while (true) {
char optId = getopt_long(argc, argv, optString, longOptions, nullptr);
if (optId == -1)
break;
switch (optId) {
case (-1):
break;
case ('h'): // help
std::cout << usage << std::endl;
return 0;
Expand Down
5 changes: 3 additions & 2 deletions KEMField/Source/Applications/Test/TestCubeCapacitance.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ int main(int argc, char* argv[])

while (true) {
char optId = getopt_long(argc, argv, optString, longOptions, nullptr);
if (optId == -1)
break;
switch (optId) {
case (-1):
break;
case ('h'): // help
MPI_SINGLE_PROCESS
std::cout << usage << std::endl;
Expand Down Expand Up @@ -366,6 +366,7 @@ int main(int argc, char* argv[])
double Q = 0.;

unsigned int i = 0;
(void) i;
for (KSurfaceContainer::iterator it = surfaceContainer.begin(); it != surfaceContainer.end(); it++) {
Q += (dynamic_cast<KRectangle*>(*it)->Area() * dynamic_cast<KElectrostaticBasis*>(*it)->GetSolution());
i++;
Expand Down
Loading