Commit 794f12d6 authored by berenger-bramas's avatar berenger-bramas
Browse files

Change some optimizations in the FMB M2L in C++.

git-svn-id: svn+ssh:// 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 5f8285a3
......@@ -843,7 +843,6 @@ public:
void M2L(CellClass* const FRestrict pole, const CellClass* distantNeighbors[189],
const int size, const int inLevel) {
FComplexe multipole_exp[MultipoleSize]; //< For multipole extenssion
FComplexe local_exp[MultipoleSize]; //< For local extenssion
memcpy(local_exp, pole->getLocal(), sizeof(FComplexe) * MultipoleSize);
......@@ -870,8 +869,7 @@ public:
printf("M2L_transfer[1]= %e/%e\n",M2L_transfer[1].getReal(),M2L_transfer[1].getImag());
printf("M2L_transfer[2]= %e/%e\n",M2L_transfer[2].getReal(),M2L_transfer[2].getImag());*/
memcpy(multipole_exp, distantNeighbors[idxSize]->getMultipole(), sizeof(FComplexe) * MultipoleSize);
const FComplexe* const multipole_exp_src = multipole_exp;
const FComplexe* const multipole_exp_src = distantNeighbors[idxSize]->getMultipole();
FComplexe* p_target_exp_term = local_exp;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment