Skip to content

Commit 2a5da65

Browse files
committed
improved comments in polytrope2d.cpp
CMakeLists.txt updated for polytrope2d
1 parent fe1a6c4 commit 2a5da65

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,6 @@ target_link_libraries(ester_info ester)
173173
add_executable(ester_vtk src/main/vtk.cpp)
174174
target_link_libraries(ester_vtk ester)
175175

176-
install(TARGETS ester polytrope1d star1d star2d star_evol version gen_output ester_info ester_vtk
176+
install(TARGETS ester polytrope1d polytrope2d star1d star2d star_evol version gen_output ester_info ester_vtk
177177
RUNTIME DESTINATION bin
178178
LIBRARY DESTINATION lib)

src/main/polytrope2d.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ int main(int argc, char *argv[]) {
1313

1414
double n = atof(argv[1]); // Polytropic index (first command-line argument)
1515
double tol = 1e-12; // Required tolerance
16-
int nr = 50; // # of radial points
16+
int nr = 100; // # of radial points
1717
int nt = 32; // # of points in theta
1818
int nex = 25; // # of points in external domain
1919
double omega = atof(argv[2]); // Angular velocity (second command-line argument)
@@ -217,9 +217,9 @@ int main(int argc, char *argv[]) {
217217
/* Here we use the symbolic equation eq that we have defined before.
218218
* We have to write (only in the internal domain):
219219
*
220-
* D(eq) D(eq) D(eq) D(eq)
221-
* ------D(Phi) + ---------D(Lambda) + -------D(Phi0) + -----D(r) = -eq
222-
* D(Phi) D(Lambda) D(Phi0) D(r)
220+
* D(eq) D(eq) D(eq) D(eq)
221+
* ------ *D(phi) + ------- *D(Lambda) + ------*D(Phi0) + -----*D(r) = -eq
222+
* D(Phi) D(Lambda) D(Phi0) D(r)
223223
*
224224
* with the boundary conditions:
225225
*
@@ -269,9 +269,9 @@ int main(int argc, char *argv[]) {
269269

270270
/* We use the symbolic equation eq_ex for writing (now in the external domain)
271271
*
272-
* D(eq_ex) D(eq_ex)
272+
* D(eq_ex) D(eq_ex)
273273
* --------D(Phiex) + --------D(r) = -eq_ex
274-
* D(Phiex) D(r)
274+
* D(Phiex) D(r)
275275
*
276276
* with boundary conditions:
277277
*
@@ -408,7 +408,7 @@ int main(int argc, char *argv[]) {
408408

409409
/***** Equation for eta *****/
410410

411-
/* eta should be equal to the value of R at theta=0
411+
/* eta should be equal to the value of R at theta=0 (the pole)
412412
*/
413413

414414
op.add_d(0, "eta", "eta", ones(1, 1)); // Internal domain

0 commit comments

Comments
 (0)