User Tools

Site Tools


nu_rnet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
nu_rnet [2014/06/05 13:54]
schutrumpg
nu_rnet [2014/06/05 14:50]
schutrumpg
Line 33: Line 33:
 {{ :​out.jpg?​500 |}} {{ :​out.jpg?​500 |}}
  
 +To set the initial electron fraction $Y_e$ which is equivalent to the proto fraction due to charge neutrality, we ran the nse version of the xnet code. Therefore the lines in the code tagged by !NSE have to be uncommented and the lines tagged by !NOTNSE have to be commented. This can be done quickly with the following commands in Unix:
 +<​code>​
 +sed -e '​s/​^\!\(.*\!NSE\)/​ \1/' conditions.f90 >​conditions.f90-
 +sed -e '​s/​^\!\(.*\!NSE\)/​ \1/' net_mpi.f90 >​net_mpi.f90-
 +sed -e '​s/​^\!\(.*\!NSE\)/​ \1/' net.f90 >​net.f90-
 +sed -e '​s/​^\!\(.*\!NSE\)/​ \1/' data_distribute_mpi.f90 >​data_distribute_mpi.f90-
 +mv conditions.f90- conditions.f90
 +mv net_mpi.f90- net_mpi.f90
 +mv net.f90- net.f90
 +mv data_distribute_mpi.f90- data_distribute_mpi.f90
 +sed -e '​s/​^\!\(.*\!NOTNSE\)/​!\1/'​ net.f90 >​net.f90-
 +mv net.f90- net.f90
 +</​code>​
 +Additionally the line 
 +<​code>​NSE_OBJ = nse.o </​code>​
 +has to be uncommented.
nu_rnet.txt ยท Last modified: 2014/06/06 09:18 by schutrumpg