Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First obtain a copy of the current Einstein Toolkit website and tool to transfer trac tickets to github:

Code Block
languagecpp
mkdir spin_exercise
cd spin_exercise
virtualenv -p python2.7 $PWD
source bin/activate
pip install PyGithub
git clone git@bitbuckethttps://bitbucket.org:/einsteintoolkit/www.git einsteinwebsitegit clone

mpute the array of energies and store the results in energy[index]. Add code to WaveMoL_Energy that

Exercise

...

website
git clone https://github.com/behrisch/migrate-trac-issues-to-github.git

which downloads a copy of the Einstein Toolkit's website as well as tools to transfer ticktets from trac to github. I have put everything into a python virtualenv to avoid adding extra software outside of the spin_exercise directory.

Exercise

The exercise is to re-create the front-page of the Einstein Toolkit website as a github pages page in a repository of your own on github and to transfer some tickets from trac to github's issue system.

  1. First create a new github repository et_spin2018 in your account,
  2. clone it to your laptop and
  3. copy and commit the files required to render the Einstein Toolkit front page http://www.einsteintoolkit.org into a branch gh-pages.
  4. Push your gh-pages branch to github using

    Code Block
    languagecpp

...

for (k=0; k<cctk_lsh[2]; k++)
{
  for (j=0; j<cctk_lsh[1]; j++)
  {
    for (i=0; i<cctk_lsh[0]; i++)
    {
      index = CCTK_GFINDEX3D(cctkGH,i,j,k);
      energy[index] = phit[index]*phit[index] +
        phix[index]*phix[index] +
        phiy[index]*phiy[index] +
        phiz[index]*phiz[index];
    }
  }
}
  1. git push --set-upstream origin gh-pages
  2. modify the foo loop in migrate-trac-issues-to-github/migrate.py in line 276 by adding a break so that only one ticket is processed (instead of all of them)

  3. run the migration script with your new repository as the target

    Code Block
    languagecpp
    migrate-trac-issues-to-github/migrate.py --trac-url=https://trac.einsteintoolkit.org --github-api-url=https://github.com/api/v3 --github-project=YOURGITHUBUSERNAME/et_spin2018

 

 

 

compute the array of energies and store the results in energy[index]. Add code to WaveMoL_Energy that

  1. computes the maximum value of energy[index]
  2. writes this value as a function of time to a file energy_maximum.xg using the same format as phi_maximum.xg . Time is accessible as the variable cctk_time .

Please compile the code once more, run it and send me the modified source file as well as energy_maximum.xg to me before the interview.

...

./simfactory/bin/sim

...

build

...

--mdbkey

...

make

...

'make

...

-j2'

Code Block
languagebash
 
exe/cactus_sim arrangements/CactusExamples/WaveMoL/par/gaussian.par

...