Skip to content

Commit

Permalink
Merge branch 'hyschive:main' into wiki_update_using_gamer
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunYen-Chen authored Sep 23, 2024
2 parents b54101b + 5a16ca4 commit f0c2e67
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/CDM_LSS/download_ic.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
curl -JO http://use.yt/upload/c2b0f76b
curl -LJO https://use.yt/upload/c2b0f76b
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/ClusterMerger/download_ic.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
filename=gamer_ic_merging_cluster.tgz
curl http://use.yt/upload/cceea6c4 -o $filename
curl -L https://use.yt/upload/cceea6c4 -o $filename
tar -zxvf $filename
rm $filename
20 changes: 12 additions & 8 deletions src/Model_Hydro/CPU_Hydro/CPU_Shared_DataReconstruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,18 +637,20 @@ void Hydro_DataReconstruction( const real g_ConVar [][ CUBE(FLU_NXT) ],
// --> When LR_EINT is on, use the reconstructed internal energy instead of pressure in Hydro_Pri2Con()
// to skip expensive EoS conversion
# ifdef LR_EINT
real* const EintPtr = fcPri + NCOMP_TOTAL_PLUS_MAG;
real* const EintPtr_faceL = fcPri[faceL] + NCOMP_TOTAL_PLUS_MAG;
real* const EintPtr_faceR = fcPri[faceR] + NCOMP_TOTAL_PLUS_MAG;
# else
real* const EintPtr = NULL;
real* const EintPtr_faceL = NULL;
real* const EintPtr_faceR = NULL;
# endif

Hydro_Pri2Con( fcPri[faceL], fcCon[faceL], FracPassive, NFrac, FracIdx, EoS->DensPres2Eint_FuncPtr,
EoS->Temp2HTilde_FuncPtr, EoS->HTilde2Temp_FuncPtr,
EoS->AuxArrayDevPtr_Flt, EoS->AuxArrayDevPtr_Int, EoS->Table, EintPtr );
EoS->AuxArrayDevPtr_Flt, EoS->AuxArrayDevPtr_Int, EoS->Table, EintPtr_faceL );

Hydro_Pri2Con( fcPri[faceR], fcCon[faceR], FracPassive, NFrac, FracIdx, EoS->DensPres2Eint_FuncPtr,
EoS->Temp2HTilde_FuncPtr, EoS->HTilde2Temp_FuncPtr,
EoS->AuxArrayDevPtr_Flt, EoS->AuxArrayDevPtr_Int, EoS->Table, EintPtr );
EoS->AuxArrayDevPtr_Flt, EoS->AuxArrayDevPtr_Int, EoS->Table, EintPtr_faceR );

} // for (int d=0; d<3; d++)

Expand Down Expand Up @@ -1342,18 +1344,20 @@ void Hydro_DataReconstruction( const real g_ConVar [][ CUBE(FLU_NXT) ],
// --> When LR_EINT is on, use the reconstructed internal energy instead of pressure in Hydro_Pri2Con()
// to skip expensive EoS conversion
# ifdef LR_EINT
real* const EintPtr = fcPri + NCOMP_TOTAL_PLUS_MAG;
real* const EintPtr_faceL = fcPri[faceL] + NCOMP_TOTAL_PLUS_MAG;
real* const EintPtr_faceR = fcPri[faceR] + NCOMP_TOTAL_PLUS_MAG;
# else
real* const EintPtr = NULL;
real* const EintPtr_faceL = NULL;
real* const EintPtr_faceR = NULL;
# endif

Hydro_Pri2Con( fcPri[faceL], fcCon[faceL], FracPassive, NFrac, FracIdx, EoS->DensPres2Eint_FuncPtr,
EoS->Temp2HTilde_FuncPtr, EoS->HTilde2Temp_FuncPtr,
EoS->AuxArrayDevPtr_Flt, EoS->AuxArrayDevPtr_Int, EoS->Table, EintPtr );
EoS->AuxArrayDevPtr_Flt, EoS->AuxArrayDevPtr_Int, EoS->Table, EintPtr_faceL );

Hydro_Pri2Con( fcPri[faceR], fcCon[faceR], FracPassive, NFrac, FracIdx, EoS->DensPres2Eint_FuncPtr,
EoS->Temp2HTilde_FuncPtr, EoS->HTilde2Temp_FuncPtr,
EoS->AuxArrayDevPtr_Flt, EoS->AuxArrayDevPtr_Int, EoS->Table, EintPtr );
EoS->AuxArrayDevPtr_Flt, EoS->AuxArrayDevPtr_Int, EoS->Table, EintPtr_faceR );

} // for (int d=0; d<3; d++)

Expand Down

0 comments on commit f0c2e67

Please sign in to comment.