Skip to content

Commit

Permalink
synch
Browse files Browse the repository at this point in the history
  • Loading branch information
JFL committed Jun 12, 2024
1 parent 91af7f3 commit 7c75256
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/DFT_Factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ class DFT_Factory

DFT& get_DFT() { check(); return *dft_;}
EOS &get_eos() { if(eos_ == NULL) throw std::runtime_error("No EOS found"); return *eos_;}

double get_D_EOS() { return D_EOS_;}

double get_cell_size() const { return cellsize_;}

void get_thermodynamics(bool verbose_ = true)
Expand Down
4 changes: 2 additions & 2 deletions src/FMT_Species_EOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ void FMT_Species_EOS::add_second_derivative(const DFT_FFT &v, DFT_Vec &d2F, cons

// Get Psi: psi(K) = conv(w_eta,v;K) = sum_J w_eta(K-J)V(J)
DFT_FFT Psi(Nx,Ny,Nz);

// N.B. the fmt weights have all necessary normalization factors built in, including dV
bool bConjugate = false;
convolute_eta_weight_with(v, result, bConjugate);
Psi.Real().IncrementBy(result.Real());

// Get Lambda: Lambda(K) = (d2dfex(K)/deta(K) deta(K))psi(K)
DFT_FFT Lambda(Nx,Ny,Nz);

long pos;
#ifdef USE_OMP
#pragma omp parallel for private(pos) schedule(static)
Expand Down

0 comments on commit 7c75256

Please sign in to comment.