Configuration after successful installation of GAMIT-doy test passed ~ Test. bat failed

Source: Internet
Author: User
Tags gfortran

Configuration after successful installation of GAMIT-doy test passed ~ Test. bat failed

GLOBK installed
++

Create the gg link in your home directory to the version
Gamit/globk you just installed? (Y/n)

Y
Making required ~ /Gg link to newly installed software
Ln-s-f/opt/gamit1035 ~ /Gg

Don't forget to set your: path to include/opt/gamit1035/gamit/bin and/opt/gamit1035/kf/bin
: HELP_DIR environment variable in you shell profile
(In. cshrc/. tcshrc add: setenv HELP_DIR/opt/gamit1035/help /)
: INSTITUTE evnironment variable in your shell profile
(In your. cshrc/. tcshrc add: setenv INSTITUTE where_ I _work)
Where_ I _work is a 3 character identifier for your solutions

I have referenced many blog posts on the Internet, especially the GAMIT help documentation. Thank you very much!

Download GAMIT help documentation:

The following is the full content of the/home/bkjia/. cshrc file (bkjia is a common linux user, and the. cshrc file starts from line)
In my online article, the command line execution environment should be csh. I am a newbie and have no courage to go over it.
My personal linux is: Ubuntu-9.04, comes with gcc compiler, and then uses sudo apt-get install gfortran command to install the gfortran compiler.
If no value exists under/home/bkjia. the cshrc file must be sudo touch first. run the command line sudo gedit/home/bkjia /. edit the cshrc file. Save the file after editing and enter source in the command line. check whether there are any errors in cshrc. Finally, enter doy in the command line to check the execution status. If yes, the help information and the current date are displayed. The detailed test information is shown below. (You can also: run echo $ PATH, LD_LIBRARY_PATH, MANPATH, HELP_DIR, or path on the command line to check whether the set environment variables are correct ))
#
# This file is applicable to all Cshell users.
# Set prompt
Set prompt = "['echo $ cwd '] %"
Set history = 50
Set gamitpath =/opt/gamit1035
Set path = (./bin/sbin/etc/usr/bin/usr/sbin/usr/bin/X11/usr/X11R6/bin $ path)
Set path = (./usr/lib/gmt/bin/usr/local/sbin/usr/lib/usr/local/lib $ path)
Set path = (. $ gamitpath/gamit/bin $ gamitpath/kf/bin $ gamitpath/com $ path)
Setenv HELP_DIR $ gamitpath/help/
Setenv PATH "/usr/sbin:/sbin :$ {PATH }"
Setenv MANPATH/usr/lib/gmt/man:/usr/local/man:/usr/share/man:/usr/X11R6/man
Setenv LD_LIBRARY_PATH/usr/lib/gmt/lib:/usr/local/lib:/usr/lib/gcc/i486-linux-gnu/4.3
# Set alias

Alias cd 'CD \! *; Set prompt = "['echo $ cwd '] % "'
Alias pwd 'echo $ cwd'
Alias ls 'ls -- classify'
Alias ll 'LS-l'
Alias la 'LS-'
Alias rm 'rm-I'
Alias mv 'mv-I'

The following are some output for verification on the terminal command line:
[/Home/bkjia] % pwd
/Home/bkjia
[/Home/bkjia] % echo $ LD_LIBRARY_PATH
/Usr/lib/gmt/lib:/usr/local/lib:/usr/lib/gcc/i486-linux-gnu/4.3
[/Home/bkjia] % echo $ PATH
/Usr/sbin :. :/opt/gamit1035/gamit/bin:/opt/gamit1035/kf/bin:/opt/gamit1035/com :. :/usr/lib/gmt/bin:/usr/local/sbin:/usr/lib:/usr/local/lib :. :/bin:/sbin:/etc:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/X11R6/bin: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[/Home/bkjia] % echo $ pach
Pach: Undefined variable.
[/Home/bkjia] % echo $ MANPATH
/Usr/lib/gmt/man:/usr/local/man:/usr/share/man:/usr/X11R6/man
[/Home/bkjia] % echo $ HELP_DIR
/Opt/gamit1035/help/
[/Home/bkjia] % doy
DOY: Converts various date formats

DOY: Converts various date formats.

Runstring:
% Doy <jd/year> <doy/month> <day> Or
% Doy <gps_week> W <gps_sow/gps_dow>
Or
% Doy <DecYear> Y

Where jd is Julian date (assumed if only one argument)
Year is calender year
Doy is day of year (assumed if two arguments)
Month is month
Day is day of month.
Hr min is hrs and minutes of day (Only if ymd form used ).
In the second form (I. e. W appended to the first value ),
The entries are assumed to gps week no and the second entry
(Optional) is either gps day of week (0-6) or seconds
Gps week.
NOTE: GPS Day of Week runs from 0-6 (Changed May 20,199 7 ).
In the third form with Y appended, the argument is taken
Deciminal year. (Versions after 2004/12/21 correctly account
For leap years in converting deciminal years back to Julian dates)

The conversions made are based on the number of arguments
Passed.

NDOY: Version of doy of year which takes keyboard input in
Forms above. (^ D ends program input ).

Example: doy 92 200
Date 1992/07/18 hrs, DOY 200 JD 2448821.5000 MJD 48821.0000
GPS Week 653 Day of week 6, GPS Seconds 518400 Day of Week Sat
Decimal Year 1992.54372

Example: doy 654 W 345600
Date 1992/07/23 hrs, DOY 205 JD 2448826.5000 MJD 48826.0000
GPS Week 654 Day of week 4, GPS Seconds 345600 Day of Week Thu
Decimal Year 1992.55738

* ** TODAY ** IS:
Date 2010/02/01 hrs, DOY 32 JD 2455229.4046 MJD 55228.9046
GPS Week 1569 Day of week 1, GPS Seconds 164557 Day of Week Mon
Decimal Year 2010.087410
[/Home/bkjia] %
[/Home/bkjia] % ls
Examples. desktop realtek-linux-audiopack-5.14 public picture music
Gamit1035_log soft template documentation Desktop
New gg test video file ~
[/Home/bkjia] % ll
Ll: Command not found.
[/Home/bkjia] % la
La: Command not found.
[/Home/bkjia] % rm
Rm: the operand is missing.
Run "rm -- help" to obtain more information.
[/Home/bkjia] %
The problem still exists as follows:
(1) In the set path variable, why does echo $ path prompt pach: Undefined variable.
(2) Why is la: Command not found already alias la 'LS-.
(3) The test. bat test fails. Refer to the blog post for testing on the Internet.
(4) The preceding command cannot be returned during command line execution. For some reason, set history = 50 does not understand the meaning.

We are very willing to share our learning experience and lessons with gamit learners.
All the above configuration information is copied from my own. cshrc. As a newbie, some professional words are not refined. If you are not professional, please Pat ~~~

GAMIT reading: l

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.